Skip to content

Commit

Permalink
fix: 定时任务不显示堆栈异常的情况
Browse files Browse the repository at this point in the history
(cherry picked commit from <gitee.com//continew/continew-admin-ui/commit/eb2c9a28afe12a2964ce6c5483550adf7966b89a>
  • Loading branch information
KAI authored and Charles7c committed Sep 26, 2024
1 parent 07294cc commit 44ef909
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/views/schedule/log/LogDetailModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ const visible = ref(false)
// 格式化日志
const formatLog = (log: any) => {
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('')
Expand Down

0 comments on commit 44ef909

Please sign in to comment.