diff options
author | Harald Musum <musum@yahoo-inc.com> | 2016-11-16 20:23:35 +0100 |
---|---|---|
committer | Harald Musum <musum@yahoo-inc.com> | 2016-11-16 20:23:35 +0100 |
commit | c10ad75fcdfa16806426e94b9154e72888bdab3c (patch) | |
tree | e45a559106c958dfc2e0e94d2f7f5360619359d9 /jaxrs_client_utils | |
parent | 7607e64d0a904e74708f4519ae5ae9074ce7e50e (diff) |
Change log level and improve log message
* No need to print 100 lines of stack trace and log as info as
requests towards services that might not be up (yet) occurs frequently
Diffstat (limited to 'jaxrs_client_utils')
-rw-r--r-- | jaxrs_client_utils/src/main/java/com/yahoo/vespa/jaxrs/client/RetryingJaxRsStrategy.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jaxrs_client_utils/src/main/java/com/yahoo/vespa/jaxrs/client/RetryingJaxRsStrategy.java b/jaxrs_client_utils/src/main/java/com/yahoo/vespa/jaxrs/client/RetryingJaxRsStrategy.java index a9269b99015..09cca09c855 100644 --- a/jaxrs_client_utils/src/main/java/com/yahoo/vespa/jaxrs/client/RetryingJaxRsStrategy.java +++ b/jaxrs_client_utils/src/main/java/com/yahoo/vespa/jaxrs/client/RetryingJaxRsStrategy.java @@ -56,7 +56,9 @@ public class RetryingJaxRsStrategy<T> implements JaxRsStrategy<T> { return function.apply(jaxRsClient); } catch (ProcessingException e) { sampleException = e; - logger.log(Level.WARNING, "Failed REST API call (in retry loop)", e); + logger.log(Level.INFO, "Failed REST API call to " + + hostName + ":" + port + pathPrefix + " (in retry loop): " + + e.getMessage()); } } } |