From a108bbc1f92f6f8a9cf67d4f0f2e3ca93218dd70 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 27 Feb 2018 17:08:12 +0100 Subject: Log stacktrace to get faulting code path. --- .../main/scala/com/yahoo/container/di/CloudSubscriberFactory.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'container-di') 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) } -- cgit v1.2.3