changed error logging for socket events