Log proxy targets and handlers instead of the proxy object itself
This commit is contained in:
parent
cfaf581ae1
commit
93cd1fd07d
|
@ -39,7 +39,7 @@ export default class Logger {
|
|||
message = typeof message === 'object' && message instanceof Array ? message : [message];
|
||||
console[level]('[%cBetter%cDiscord:%s]', 'color: #3E82E5', '', `${module}${level === 'debug' ? '|DBG' : ''}`, ...message);
|
||||
|
||||
const message_string = message.map(m => typeof m === 'string' ? m : node_utils.inspect(m)).join(' ');
|
||||
const message_string = message.map(m => typeof m === 'string' ? m : node_utils.inspect(m, {showProxy: true})).join(' ');
|
||||
this.logs.push(`${level.toUpperCase()} : [${Logger.timestamp}|${module}] ${message_string}`);
|
||||
|
||||
if (this.file)
|
||||
|
|
Loading…
Reference in New Issue