|
1 | 1 | /* |
2 | | - * Copyright 2018-2019 the original author or authors. |
| 2 | + * Copyright 2018-2020 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
@@ -241,15 +241,15 @@ private void overrideExitMethods() { |
241 | 241 | String exitMsg = "Exit.%s(%d, %s) called"; |
242 | 242 | Exit.setExitProcedure((statusCode, message) -> { |
243 | 243 | 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()); |
245 | 245 | } |
246 | 246 | else { |
247 | 247 | logger.warn(String.format(exitMsg, "exit", statusCode, message)); |
248 | 248 | } |
249 | 249 | }); |
250 | 250 | Exit.setHaltProcedure((statusCode, message) -> { |
251 | 251 | 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()); |
253 | 253 | } |
254 | 254 | else { |
255 | 255 | logger.warn(String.format(exitMsg, "halt", statusCode, message)); |
|
0 commit comments