Add debug logging for Telnet protocol negotiation