Improve logging from retriver.
@@ -3,11 +3,14 @@ package com.yahoo.container.di
import config.Subscriber
-import java.util.logging.Logger
+import java.util.logging.{Level, Logger}
+
import com.yahoo.log.LogLevel
import ConfigRetriever._
+
import annotation.tailrec
import com.yahoo.config.ConfigInstance
+
import scala.collection.JavaConversions._
import com.yahoo.vespa.config.ConfigKey
@@ -81,7 +84,7 @@ final class ConfigRetriever(bootstrapKeys: Set[ConfigKeyT],
componentSubscriber = subscribe(keys)
} catch {
case e: Throwable =>
- log.warning(s"Failed setting up subscriptions for component configs: ${e.getMessage} - Config keys: $keys")
+ log.log(Level.WARNING, s"Failed setting up subscriptions for component configs: ${e.getMessage} - Config keys: $keys", e)
throw e
}
}
