summaryrefslogtreecommitdiffstats
path: root/jdisc_core
diff options
context:
space:
mode:
authorHÃ¥kon Hallingstad <hakon@oath.com>2017-12-23 14:46:07 +0100
committerGitHub <noreply@github.com>2017-12-23 14:46:07 +0100
commitde3346c2f4c42e439027400ad37c0871cab61c40 (patch)
treed8cd9e4cfd757f3fed3a891d566d773a0ee84699 /jdisc_core
parentcbd40f65613afabb6de683421afd526e9b9c49a0 (diff)
Revert "Revert "Log at JDisc process start and stop""
Diffstat (limited to 'jdisc_core')
-rw-r--r--jdisc_core/src/main/java/com/yahoo/jdisc/core/StandaloneMain.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/core/StandaloneMain.java b/jdisc_core/src/main/java/com/yahoo/jdisc/core/StandaloneMain.java
index a78e4f1af40..b0146cd88d3 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/core/StandaloneMain.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/core/StandaloneMain.java
@@ -37,20 +37,23 @@ public class StandaloneMain {
void run(String bundleLocation) {
try {
System.out.println("debug\tInitializing application without privileges.");
+ log.log(Level.INFO, "JDisc starting with bundle location " + bundleLocation);
loader.init(bundleLocation, false);
loader.start();
setupSigTermHandler();
waitForShutdown();
System.out.println("debug\tTrying to shutdown in a controlled manner.");
+ log.log(Level.INFO, "JDisc shutting down");
loader.stop();
System.out.println("debug\tTrying to clean up in a controlled manner.");
loader.destroy();
System.out.println("debug\tStopped ok.");
+ log.log(Level.INFO, "JDisc exiting");
System.exit(0);
} catch (Throwable e) {
System.out.print("debug\tUnexpected: ");
e.printStackTrace();
- log.log(Level.SEVERE, "Unexpected: ", e);
+ log.log(Level.SEVERE, "JDisc exiting: Throwable caught: ", e);
System.exit(6);
}
}