wip fix server log
This commit is contained in:
parent
0cdeaa1c15
commit
cdef4085f8
|
|
@ -109,7 +109,8 @@ if (typeof global.server_hook === "function") {
|
||||||
}
|
}
|
||||||
ancestors.push(val);
|
ancestors.push(val);
|
||||||
|
|
||||||
if (val.constructor && val.constructor.name !== "Object"){
|
if (val.constructor &&
|
||||||
|
!['Object', 'Array'].includes(val.constructor.name)) {
|
||||||
if (val.constructor.name === 'Error') {
|
if (val.constructor.name === 'Error') {
|
||||||
return '[Error] ' + val.message;
|
return '[Error] ' + val.message;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue