diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-04-20 22:51:20 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2022-05-09 11:10:13 +0200 |
commit | 0a7853188999269c2b9bbcb406c556869b7760bd (patch) | |
tree | a5da8e81c4a8d49c6381108df802bb58e17f0691 /jdisc_core | |
parent | ba1ec40ccfe7f10ce757263871dd149b0709b8bf (diff) |
Initialize logging earlier in container startup sequence
Diffstat (limited to 'jdisc_core')
-rw-r--r-- | jdisc_core/src/main/java/com/yahoo/jdisc/core/ApplicationLoader.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/core/ApplicationLoader.java b/jdisc_core/src/main/java/com/yahoo/jdisc/core/ApplicationLoader.java index 952e8dd5f00..4ccec132ccc 100644 --- a/jdisc_core/src/main/java/com/yahoo/jdisc/core/ApplicationLoader.java +++ b/jdisc_core/src/main/java/com/yahoo/jdisc/core/ApplicationLoader.java @@ -16,6 +16,8 @@ import com.yahoo.jdisc.application.OsgiHeader; import com.yahoo.jdisc.service.ContainerNotReadyException; import com.yahoo.jdisc.service.CurrentContainer; import com.yahoo.jdisc.statistics.ContainerWatchdogMetrics; +import com.yahoo.log.InitializeLog; +import com.yahoo.log.LogSetup; import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext; import org.osgi.framework.BundleException; @@ -46,6 +48,7 @@ public class ApplicationLoader implements BootstrapLoader, ContainerActivator, C private ApplicationInUseTracker applicationInUseTracker; public ApplicationLoader(OsgiFramework osgiFramework, Iterable<? extends Module> guiceModules) { + InitializeLog.init(); this.osgiFramework = osgiFramework; this.guiceModules.install(new ApplicationEnvironmentModule(this)); this.guiceModules.installAll(guiceModules); @@ -198,6 +201,7 @@ public class ApplicationLoader implements BootstrapLoader, ContainerActivator, C try { watchdog.close(); osgiFramework.stop(); + LogSetup.cleanup(); } catch (BundleException | InterruptedException e) { e.printStackTrace(); } |