优化日志打印的方式

This commit is contained in:
jishenghua
2024-05-28 00:49:48 +08:00
parent 880c93899c
commit d3f0ff3777
34 changed files with 128 additions and 258 deletions

View File

@@ -51,7 +51,7 @@ public class MaterialAttributeController {
}
}
} catch(Exception e){
e.printStackTrace();
logger.error(e.getMessage(), e);
}
return dataArray;
}
@@ -69,7 +69,7 @@ public class MaterialAttributeController {
try {
dataArray = materialAttributeService.getValueArrById(id);
} catch(Exception e){
e.printStackTrace();
logger.error(e.getMessage(), e);
}
return dataArray;
}