Skip to content

Commit d21aaa4

Browse files
logs update
1 parent 842f219 commit d21aaa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/src/main/java/com/cloud/agent/Agent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,10 +1231,11 @@ public void doTask(final Task task) throws TaskExecutionException {
12311231
try {
12321232
// an issue has been found if reconnect immediately after disconnecting. please refer to https://github.com/apache/cloudstack/issues/8517
12331233
// wait 5 seconds before reconnecting
1234+
logger.debug("Wait for 5 secs before reconnecting, disconnect task - {}", () -> getLinkLog(task.getLink()));
12341235
Thread.sleep(5000);
12351236
} catch (InterruptedException e) {
12361237
}
1237-
logger.debug("Executing disconnect task - {}", () -> getLinkLog(task.getLink()));
1238+
logger.debug("Executing disconnect task - {} and reconnecting", () -> getLinkLog(task.getLink()));
12381239
reconnect(task.getLink());
12391240
} else if (task.getType() == Task.Type.OTHER) {
12401241
processOtherTask(task);

0 commit comments

Comments
 (0)