更新
This commit is contained in:
@@ -33,6 +33,10 @@ public class DeviceExecuteLogServiceImpl implements DeviceExecuteLogService {
|
|||||||
try {
|
try {
|
||||||
MDC.put("device_code_log", device_code);
|
MDC.put("device_code_log", device_code);
|
||||||
log.info("{},{}", device_code, message);
|
log.info("{},{}", device_code, message);
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
log.error(e.getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
MDC.remove("device_code_log");
|
MDC.remove("device_code_log");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user