Improved error logging in WsAgentURLProvider (#11485)

Signed-off-by: Dmytro Kulieshov <dkuliesh@redhat.com>
6.19.x
Dmytro Kulieshov 2018-10-09 16:38:06 +03:00 committed by GitHub
parent 923b0b7a48
commit 116cdc5f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -69,8 +69,8 @@ public class WsAgentURLProvider implements Provider<String> {
}
}
} catch (ApiException | IOException ex) {
LOG.warn(ex.getLocalizedMessage());
throw new RuntimeException("Failed to configure wsagent endpoint");
LOG.error(ex.getLocalizedMessage());
throw new RuntimeException("Failed to configure wsagent endpoint", ex);
}
}
return cachedAgentUrl;