sureshanaparti commented on code in PR #11145:
URL: https://github.com/apache/cloudstack/pull/11145#discussion_r2191692591
##########
plugins/network-elements/juniper-contrail/src/test/java/org/apache/cloudstack/network/contrail/management/ManagementServerMock.java:
##########
@@ -220,11 +224,9 @@ public Object answer(InvocationOnMock invocation) {
try {
Mockito.when(_agentMgr.send(ArgumentMatchers.anyLong(),
ArgumentMatchers.any(Commands.class))).thenAnswer(callback);
} catch (AgentUnavailableException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ logger.warn("no agent running", e);
} catch (OperationTimedoutException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ logger.ward("agent not responding (in time)", e);
Review Comment:
```suggestion
logger.warn("agent not responding (in time)", e);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]