Skip to content

Commit dfc0f1c

Browse files
KlausDornsbachklaus.freitas.scclouds
authored andcommitted
Update Agent.java
revert a lambda expression because log4j2 does not support a non lambda + lambda as parameters
1 parent 7238f69 commit dfc0f1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
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, () -> ": Detail = " + ObjectUtils.defaultIfNull(detail, ""));
315+
logger.info("Stopping the agent: Reason = {} {}", ": Detail = " + ObjectUtils.defaultIfNull(detail, ""));
316316
_reconnectAllowed = false;
317317
if (_connection != null) {
318318
final ShutdownCommand cmd = new ShutdownCommand(reason, detail);

0 commit comments

Comments
 (0)