mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-27 04:57:08 +08:00
fix: 定时任务不显示堆栈异常的情况
(cherry picked commit from <gitee.com//continew/continew-admin-ui/commit/eb2c9a28afe12a2964ce6c5483550adf7966b89a>
This commit is contained in:
@@ -71,7 +71,12 @@ const visible = ref(false)
|
|||||||
// 格式化日志
|
// 格式化日志
|
||||||
const formatLog = (log: any) => {
|
const formatLog = (log: any) => {
|
||||||
const date = new Date(Number.parseInt(log.time_stamp))
|
const date = new Date(Number.parseInt(log.time_stamp))
|
||||||
return `${dayjs(date).format('YYYY-MM-DD HH:mm:ss')} ${log.level} [${log.thread}] ${log.location} - ${log.message}`
|
let formatLog = `${dayjs(date).format('YYYY-MM-DD HH:mm:ss')} ${log.level} [${log.thread}] ${log.location} - ${log.message}`
|
||||||
|
// 增加堆栈信息显示
|
||||||
|
if (log.throwable) {
|
||||||
|
formatLog += `\n ${log.throwable}`
|
||||||
|
}
|
||||||
|
return formatLog
|
||||||
}
|
}
|
||||||
|
|
||||||
const content = ref('')
|
const content = ref('')
|
||||||
|
Reference in New Issue
Block a user