Skip to content

Commit b0c5501

Browse files
committed
Fix log
1 parent c098aaa commit b0c5501

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -475,22 +475,22 @@ protected int getTimeoutForCommands(Commands commands, int timeout) {
475475
Set<String> commandsClassPath = commands.getCommands().stream().map(command -> command.getClass().getName()).collect(Collectors.toSet());
476476

477477
if (timeout > 0) {
478-
s_logger.trace(String.format("The timeout [%s] was already defined for commands %s; therefore, we will use it instead of searching for the max value in table " +
479-
"[%s].", timeout, commandsClassPath, CommandTimeoutVO.TABLE_NAME));
478+
logger.trace("The timeout [{}] was already defined for commands {}; therefore, we will use it instead of searching for the max value in table " +
479+
"[{}].", timeout, commandsClassPath, CommandTimeoutVO.TABLE_NAME);
480480
return timeout;
481481
}
482482

483-
s_logger.trace(String.format("The timeout for commands %s was not defined yet; therefore, we will search for the max value between the commands in table " +
484-
"[%s].", commandsClassPath, CommandTimeoutVO.TABLE_NAME));
483+
logger.trace("The timeout for commands {} was not defined yet; therefore, we will search for the max value between the commands in table " +
484+
"[{}].", commandsClassPath, CommandTimeoutVO.TABLE_NAME);
485485
timeout = commandTimeoutDao.findMaxTimeoutBetweenCommands(commandsClassPath);
486486

487487
if (timeout > 0) {
488-
s_logger.trace(String.format("We found [%s] as the max timeout between commands %s in table [%s]; using it.", timeout, commandsClassPath,
489-
CommandTimeoutVO.TABLE_NAME));
488+
logger.trace("We found [{}] as the max timeout between commands {} in table [{}]; using it.", timeout, commandsClassPath,
489+
CommandTimeoutVO.TABLE_NAME);
490490
} else {
491491
timeout = getWaitValue();
492-
s_logger.trace(String.format("We did not find a max timeout between commands %s in table [%s]; therefore, we will fallback to the value of " +
493-
"configuration [%s]: [%s].", commandsClassPath, CommandTimeoutVO.TABLE_NAME, Wait.key(), timeout));
492+
logger.trace("We did not find a max timeout between commands %s in table [{}]; therefore, we will fallback to the value of " +
493+
"configuration [{}]: [{}].", commandsClassPath, CommandTimeoutVO.TABLE_NAME, Wait.key(), timeout);
494494
}
495495

496496
return timeout;

0 commit comments

Comments
 (0)