mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Log stack in error event
This commit is contained in:
@@ -101,7 +101,7 @@ client.on('disconnect', event => {
|
|||||||
process.exit(0);
|
process.exit(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('error', err => client.logger.error(err));
|
client.on('error', err => client.logger.error(err.stack));
|
||||||
|
|
||||||
client.on('warn', warn => client.logger.warn(warn));
|
client.on('warn', warn => client.logger.warn(warn));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user