From ffcc854d429f6e42d901e63501d1ff6c1af35ef1 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 5 May 2015 16:40:48 +0100 Subject: [PATCH] Include exception in warning message when pid file cannot be created Closes gh-2905 --- .../boot/actuate/system/ApplicationPidFileWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/system/ApplicationPidFileWriter.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/system/ApplicationPidFileWriter.java index 65ce2f70d3c..6ae378fe6ea 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/system/ApplicationPidFileWriter.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/system/ApplicationPidFileWriter.java @@ -108,7 +108,7 @@ public class ApplicationPidFileWriter implements writePidFile(event); } catch (Exception ex) { - logger.warn(String.format("Cannot create pid file %s", this.file)); + logger.warn(String.format("Cannot create pid file %s", this.file), ex); } } }