summaryrefslogtreecommitdiffstats
path: root/athenz-identity-provider-service
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2017-11-17 13:04:13 +0100
committerBjørn Christian Seime <bjorncs@oath.com>2017-11-17 13:05:31 +0100
commit511e6e1921c4c7ab79559ce48692efde90b32658 (patch)
treef3d2c360f92cce9d5fc1d57a3dfad3cca6593079 /athenz-identity-provider-service
parent640f34e00b81eb709373246e68891b10b1ff5281 (diff)
Cleanup logging in IdentityDocumentResource
Diffstat (limited to 'athenz-identity-provider-service')
-rw-r--r--athenz-identity-provider-service/src/main/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentResource.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/athenz-identity-provider-service/src/main/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentResource.java b/athenz-identity-provider-service/src/main/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentResource.java
index 1dbec8b9395..b36e81bec2e 100644
--- a/athenz-identity-provider-service/src/main/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentResource.java
+++ b/athenz-identity-provider-service/src/main/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentResource.java
@@ -48,10 +48,9 @@ public class IdentityDocumentResource {
throw new BadRequestException("The 'hostname' query parameter is missing");
}
try {
- log.log(LogLevel.INFO, "Generating identity document for " + hostname);
return identityDocumentGenerator.generateSignedIdentityDocument(hostname);
} catch (Exception e) {
- String message = String.format("Unable to generate identity doument [%s]", e.getMessage());
+ String message = String.format("Unable to generate identity doument for '%s': %s", hostname, e.getMessage());
log.log(LogLevel.ERROR, message, e);
throw new InternalServerErrorException(message, e);
}