error logging in chat_server