log.error(msg)和log.error(msg,e)的显示区别

时间:2022-09-19 09:04:44

log.error(msg):

[2017-10-18 11:31:07,652] [Thread-7] (CmsCtlDataUploadFileExchange.java:50) ERROR com..prd.task.upload.bjzx.CmsCtlDataUploadFileExchange - java.lang.NullPointerException

log.error(msg,e)

java.lang.NullPointerException
at com..upload.bjzx.CmsCtlDataUploadFileExchange.getSyncCTLStrJson(CmsCtlDataUploadFileExchange.java:76)
at com.prd.task.upload.bjzx.CmsCtlDataUploadFileExchangeBJZX.transferData(CmsCtlDataUploadFileExchangeBJZX.java:43)
at com.prd.task.upload.defaults.CmsCtlDataUploadFileExchange.transferData(CmsCtlDataUploadFileExchange.java:1)
at com.framework.task.AbstractUploadFileExchange.loopData(AbstractUploadFileExchange.java:111)
at com.framework.task.AbstractUploadFileExchange.process(AbstractUploadFileExchange.java:75)
at com.framework.task.FileTaskThreadFramework.lambda$startFileTask$0(FileTaskThreadFramework.java:26)
at java.lang.Thread.run(Thread.java:745)