Adding debug log to socket on server