更新
This commit is contained in:
@@ -62,7 +62,7 @@ public class DeviceExecuteLogServiceImpl implements DeviceExecuteLogService {
|
|||||||
public void queryTask(String title, String device_code, String message) {
|
public void queryTask(String title, String device_code, String message) {
|
||||||
try {
|
try {
|
||||||
MDC.put("device_code_log", title);
|
MDC.put("device_code_log", title);
|
||||||
log.error("日志主题:{},设备编码:{},消息:{}", title, device_code, message);
|
log.info("日志主题:{},设备编码:{},消息:{}", title, device_code, message);
|
||||||
} finally {
|
} finally {
|
||||||
MDC.remove("device_code_log");
|
MDC.remove("device_code_log");
|
||||||
}
|
}
|
||||||
@@ -72,7 +72,7 @@ public class DeviceExecuteLogServiceImpl implements DeviceExecuteLogService {
|
|||||||
public void writeLog(String title, String device_code, String message) {
|
public void writeLog(String title, String device_code, String message) {
|
||||||
try {
|
try {
|
||||||
MDC.put("device_code_log", title);
|
MDC.put("device_code_log", title);
|
||||||
log.error("日志主题:{},设备编码:{},消息:{}", title, device_code, message);
|
log.info("日志主题:{},设备编码:{},消息:{}", title, device_code, message);
|
||||||
} finally {
|
} finally {
|
||||||
MDC.remove("device_code_log");
|
MDC.remove("device_code_log");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user