Skip to content

Commit c43c2dc

Browse files
committed
Fix logger parameters order
1 parent 9e56111 commit c43c2dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-kafka-test/src/main/java/org/springframework/kafka/test/EmbeddedKafkaBroker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2019 the original author or authors.
2+
* Copyright 2018-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -241,15 +241,15 @@ private void overrideExitMethods() {
241241
String exitMsg = "Exit.%s(%d, %s) called";
242242
Exit.setExitProcedure((statusCode, message) -> {
243243
if (logger.isDebugEnabled()) {
244-
logger.debug(new RuntimeException(), String.format(exitMsg, "exit", statusCode, message));
244+
logger.debug(String.format(exitMsg, "exit", statusCode, message), new RuntimeException());
245245
}
246246
else {
247247
logger.warn(String.format(exitMsg, "exit", statusCode, message));
248248
}
249249
});
250250
Exit.setHaltProcedure((statusCode, message) -> {
251251
if (logger.isDebugEnabled()) {
252-
logger.debug(new RuntimeException(), String.format(exitMsg, "halt", statusCode, message));
252+
logger.debug(String.format(exitMsg, "halt", statusCode, message), new RuntimeException());
253253
}
254254
else {
255255
logger.warn(String.format(exitMsg, "halt", statusCode, message));

0 commit comments

Comments
 (0)