From 669bda34c57e3fc8d2753c32a54d5ae6901b2567 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Fri, 6 Nov 2020 10:24:49 -0400 Subject: [PATCH] logging --- src/sockets.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sockets.js b/src/sockets.js index c10e3454..61231402 100644 --- a/src/sockets.js +++ b/src/sockets.js @@ -447,14 +447,18 @@ module.exports = ( // TODO: make this sync async socket => { try { + logger.info('Received connect request for shockping socket') if (!isAuthenticated()) { + logger.info( + 'not authenticated in gun for shockping socket, will send NOT_AUTH' + ) socket.emit(Common.Constants.ErrorCode.NOT_AUTH) return } + logger.info('now checking token') const { token } = socket.handshake.query - const isAuth = await isValidToken(token) if (!isAuth) {