Change log level of AgentHandler#processRequest() (#10869)

Co-authored-by: Vitor Hugo Homem Marzarotto <vitor.marzarotto@scclouds.com.br>
This commit is contained in:
Vitor Hugo Homem Marzarotto 2025-09-10 06:06:16 -03:00 committed by GitHub
parent fe120b64e7
commit 2e113e5ed7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1454,7 +1454,7 @@ public class AgentManagerImpl extends ManagerBase implements AgentManager, Handl
} }
} }
} catch (final Throwable th) { } catch (final Throwable th) {
s_logger.warn("Caught: ", th); s_logger.error("Caught: ", th);
answer = new Answer(cmd, false, th.getMessage()); answer = new Answer(cmd, false, th.getMessage());
} }
answers[i] = answer; answers[i] = answer;
@ -1471,7 +1471,7 @@ public class AgentManagerImpl extends ManagerBase implements AgentManager, Handl
try { try {
link.send(response.toBytes()); link.send(response.toBytes());
} catch (final ClosedChannelException e) { } catch (final ClosedChannelException e) {
s_logger.warn("Unable to send response because connection is closed: " + response); s_logger.error("Unable to send response because connection is closed: " + response);
} }
} }