diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-02-27 17:08:12 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2018-03-05 12:29:45 +0000 |
commit | a108bbc1f92f6f8a9cf67d4f0f2e3ca93218dd70 (patch) | |
tree | 95a6291656eda0b1e7b738aba48a9ca64f6c7dc0 /container-di | |
parent | 251243a8b326149c6f96ce32bd94d8375ce0ce44 (diff) |
Log stacktrace to get faulting code path.
Diffstat (limited to 'container-di')
-rw-r--r-- | container-di/src/main/scala/com/yahoo/container/di/CloudSubscriberFactory.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/container-di/src/main/scala/com/yahoo/container/di/CloudSubscriberFactory.scala b/container-di/src/main/scala/com/yahoo/container/di/CloudSubscriberFactory.scala index 6c09ef80b85..afef3e96821 100644 --- a/container-di/src/main/scala/com/yahoo/container/di/CloudSubscriberFactory.scala +++ b/container-di/src/main/scala/com/yahoo/container/di/CloudSubscriberFactory.scala @@ -1,7 +1,7 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.container.di -import java.util.logging.Logger +import java.util.logging.{Level, Logger} import com.yahoo.config.ConfigInstance import com.yahoo.config.subscription.{ConfigHandle, ConfigSource, ConfigSourceSet, ConfigSubscriber} @@ -78,8 +78,8 @@ object CloudSubscriberFactory { } catch { case e: IllegalArgumentException => numExceptions += 1 - log.warning("Got exception from the config system (please ignore the exception if you just removed " - + "a component from your application that used the mentioned config): " + e.getMessage) + log.log(Level.WARNING, "Got exception from the config system (please ignore the exception if you just removed " + + "a component from your application that used the mentioned config): ", e) if (numExceptions >= 5) throw new IllegalArgumentException("Failed retrieving the next config generation.", e) } |