Silence orchestrator
@@ -78,10 +78,10 @@ public class HostResource implements HostApi {
applicationUri.toString(),
hostServices);
} catch (UncheckedTimeoutException e) {
- log.log(LogLevel.INFO, "Failed to get host " + hostName + ": " + e.getMessage());
+ log.log(LogLevel.DEBUG, "Failed to get host " + hostName + ": " + e.getMessage());
throw webExceptionFromTimeout("getHost", hostName, e);
} catch (HostNameNotFoundException e) {
- log.log(LogLevel.INFO, "Host not found: " + hostName);
+ log.log(LogLevel.DEBUG, "Host not found: " + hostName);
throw new NotFoundException(e);
}
}
@@ -101,14 +101,14 @@ public class HostResource implements HostApi {
try {
orchestrator.setNodeStatus(hostName, state);
} catch (HostNameNotFoundException e) {
- log.log(LogLevel.INFO, "Host not found: " + hostName);
+ log.log(LogLevel.DEBUG, "Host not found: " + hostName);
throw new NotFoundException(e);
} catch (UncheckedTimeoutException e) {
- log.log(LogLevel.INFO, "Failed to patch " + hostName + ": " + e.getMessage());
+ log.log(LogLevel.DEBUG, "Failed to patch " + hostName + ": " + e.getMessage());
throw webExceptionFromTimeout("patch", hostName, e);
} catch (OrchestrationException e) {
String message = "Failed to set " + hostName + " to " + state + ": " + e.getMessage();
- log.log(LogLevel.INFO, message, e);
+ log.log(LogLevel.DEBUG, message, e);
throw new InternalServerErrorException(message);
}
}
@@ -124,13 +124,13 @@ public class HostResource implements HostApi {
try {
orchestrator.suspend(hostName);
} catch (HostNameNotFoundException e) {
- log.log(LogLevel.INFO, "Host not found: " + hostName);
+ log.log(LogLevel.DEBUG, "Host not found: " + hostName);
throw new NotFoundException(e);
} catch (UncheckedTimeoutException e) {
- log.log(LogLevel.INFO, "Failed to suspend " + hostName + ": " + e.getMessage());
+ log.log(LogLevel.DEBUG, "Failed to suspend " + hostName + ": " + e.getMessage());
throw webExceptionFromTimeout("suspend", hostName, e);
} catch (HostStateChangeDeniedException e) {
- log.log(LogLevel.INFO, "Failed to suspend " + hostName + ": " + e.getMessage());
+ log.log(LogLevel.DEBUG, "Failed to suspend " + hostName + ": " + e.getMessage());
throw webExceptionWithDenialReason("suspend", hostName, e);
}
return new UpdateHostResponse(hostName.s(), null);
@@ -142,13 +142,13 @@ public class HostResource implements HostApi {
try {
orchestrator.resume(hostName);
} catch (HostNameNotFoundException e) {
- log.log(LogLevel.INFO, "Host not found: " + hostName);
+ log.log(LogLevel.DEBUG, "Host not found: " + hostName);
throw new NotFoundException(e);
} catch (UncheckedTimeoutException e) {
- log.log(LogLevel.INFO, "Failed to resume " + hostName + ": " + e.getMessage());
+ log.log(LogLevel.DEBUG, "Failed to resume " + hostName + ": " + e.getMessage());
throw webExceptionFromTimeout("resume", hostName, e);
} catch (HostStateChangeDeniedException e) {
- log.log(LogLevel.INFO, "Failed to resume " + hostName + ": " + e.getMessage());
+ log.log(LogLevel.DEBUG, "Failed to resume " + hostName + ": " + e.getMessage());
throw webExceptionWithDenialReason("resume", hostName, e);
}
return new UpdateHostResponse(hostName.s(), null);
