Skip to content

Commit

Permalink
feat: show event/params on error
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Aug 6, 2020
1 parent 68f8d6e commit d6baf5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/socket.io/index.js
Expand Up @@ -150,7 +150,8 @@ async function onMessage(socket, payload) {
});
}
} catch (err) {
winston.error(err.stack ? err.stack : err.message);
const event = JSON.stringify({ eventName, params });
winston.error(event + '\n' + (err.stack ? err.stack : err.message));
callback({ message: err.message });
}
}
Expand Down

0 comments on commit d6baf5c

Please sign in to comment.