mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
优化日志,错误标记
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import stats from './stats'
|
||||
import encrypt from './encrypt'
|
||||
import tour from './tour'
|
||||
import log from './log'
|
||||
|
||||
export default {
|
||||
stats,
|
||||
encrypt,
|
||||
tour
|
||||
tour,
|
||||
log
|
||||
}
|
||||
|
||||
5
frontend/src/utils/log.js
Normal file
5
frontend/src/utils/log.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const regexToken = ' :,.'
|
||||
|
||||
export default {
|
||||
errorRegex: new RegExp(`(?:[${regexToken}]|^)((?:error|exception|traceback)s?)(?:[${regexToken}]|$)`, 'gi')
|
||||
}
|
||||
Reference in New Issue
Block a user