Updated chat server to log data