add modern stracktrace to log messages

pull/2900/head
Isaac Connor 2020-03-20 11:06:32 -04:00
parent 4aaaeda6ed
commit d7ea798c09
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ function logReport( level, message, file, line ) {
/* eslint-disable no-caller */
if ( arguments && arguments.callee && arguments.callee.caller && arguments.callee.caller.caller && arguments.callee.caller.caller.name ) {
message += ' - '+arguments.callee.caller.caller.name+'()';
} else {
message += new Error().stack;
}
/* eslint-enable no-caller */