Skip to content

Commit 7238f69

Browse files
KlausDornsbachJoaoJandre
authored andcommitted
Apply suggestions from code review
Co-authored-by: João Jandre <48719461+JoaoJandre@users.noreply.github.com>
1 parent 09cc53c commit 7238f69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public void start() {
312312
}
313313

314314
public void stop(final String reason, final String detail) {
315-
logger.info("Stopping the agent: Reason = {}", reason + ObjectUtils.defaultIfNull(": Detail = " + detail, ""));
315+
logger.info("Stopping the agent: Reason = {} {}", reason, () -> ": Detail = " + ObjectUtils.defaultIfNull(detail, ""));
316316
_reconnectAllowed = false;
317317
if (_connection != null) {
318318
final ShutdownCommand cmd = new ShutdownCommand(reason, detail);
@@ -377,7 +377,7 @@ public Long getId() {
377377
}
378378

379379
public void setId(final Long id) {
380-
logger.info("Set agent id {}", id);
380+
logger.debug("Set agent id {}", id);
381381
_id = id;
382382
_shell.setPersistentProperty(getResourceName(), "id", Long.toString(id));
383383
}

0 commit comments

Comments
 (0)