Added more logging and debug

Added more logging and debug
I could do that. Though to be fair, req.socket.host has been set in config/sockets.js if isSocket is true. But I'll add it anyway; just to be safe.