diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2016-06-22 11:06:36 +0200 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2016-06-22 11:06:36 +0200 |
commit | 185f6dbfcdf947c575ddce019debb52501091395 (patch) | |
tree | 7a914467a0449c57c7ec708ca81491221a976fbf /jdisc_core/src/main/java/com/yahoo/jdisc/core | |
parent | 000d35a36d809916c1d7d677f6398d6f262820db (diff) |
avoid sending info messages to stderr
* logging here will happen before we get
around to setting up the logging system
like we really want. Instead, just print
some useful information to stdout which
is clearly marked as debug output.
Diffstat (limited to 'jdisc_core/src/main/java/com/yahoo/jdisc/core')
-rw-r--r-- | jdisc_core/src/main/java/com/yahoo/jdisc/core/StandaloneMain.java | 21 |
1 files changed, 11 insertions, 10 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 84e91a52e3a..19b6c220f07 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 @@ -36,16 +36,17 @@ public class StandaloneMain { void run(String bundleLocation) { try { - log.info("Initializing application without privileges."); - loader.init(bundleLocation, false); - loader.start(); - setupSigTermHandler(); - waitForShutdown(); - // Event.stopping(APPNAME, "shutdown"); - loader.stop(); - // Event.stopped(APPNAME, 0, 0); - loader.destroy(); - // System.exit(0); + System.out.println("debug\tInitializing application without privileges."); + loader.init(bundleLocation, false); + loader.start(); + setupSigTermHandler(); + waitForShutdown(); + System.out.println("debug\tTrying to shutdown in a controlled manner."); + loader.stop(); + System.out.println("debug\tTrying to clean up in a controlled manner."); + loader.destroy(); + System.out.println("debug\tStopped ok."); + System.exit(0); } catch (Exception e) { log.log(Level.WARNING, "Unexpected: ", e); System.exit(6); |