Changes to logging an chat session handling.