From 5868bb31353583f07a070aa2489f50b577f68e41 Mon Sep 17 00:00:00 2001 From: HÃ¥kon Hallingstad Date: Fri, 22 Dec 2017 14:08:29 +0100 Subject: Log at JDisc process start and stop --- jdisc_core/src/main/java/com/yahoo/jdisc/core/StandaloneMain.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'jdisc_core') 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); } } -- cgit v1.2.3