Including stack trace in error log.
This commit is contained in:
parent
91c99428ff
commit
802639d830
|
@ -254,7 +254,7 @@ function getGames(bot) {
|
|||
}
|
||||
|
||||
function handleError(error, socket, domain, data) {
|
||||
logger.error(`${domain} '${JSON.stringify(data)}' triggered error: ${error.message}`);
|
||||
logger.error(`${domain} '${JSON.stringify(data)}' triggered error: ${error.message} ${error.stack}`);
|
||||
|
||||
if (data?.roomId) {
|
||||
socket.transmit('message', {
|
||||
|
|
Loading…
Reference in New Issue