Improve js logging error message
This commit is contained in:
parent
0b84957ad0
commit
9f5d4811ba
|
@ -16,7 +16,9 @@ export function init() {
|
||||||
|
|
||||||
if (env.LOG_JS_ERRORS) {
|
if (env.LOG_JS_ERRORS) {
|
||||||
setOnErrorLog((error: Error) => {
|
setOnErrorLog((error: Error) => {
|
||||||
logging.logWarn(JSON.stringify(serializeError(error)))
|
logging.logWarn(
|
||||||
|
`Error while executing js: ${JSON.stringify(serializeError(error))}`
|
||||||
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue