From f3571a089a5cde20bde2f6f61e90ac146a43a7cf Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 3 Aug 2018 13:03:27 +0000 Subject: [PATCH] log ssh errors using ssh logger git-svn-id: https://xpra.org/svn/Xpra/trunk@20008 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/scripts/server.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/xpra/scripts/server.py b/src/xpra/scripts/server.py index 5b76e68293..827efcfca0 100644 --- a/src/xpra/scripts/server.py +++ b/src/xpra/scripts/server.py @@ -672,9 +672,11 @@ def add_udp_socket(socktype, host_str, iport): import paramiko assert paramiko except ImportError as e: - netlog("import paramiko", exc_info=True) - netlog.error("Error: cannot enable SSH socket upgrades:") - netlog.error(" %s", e) + from xpra.log import Logger + sshlog = Logger("ssh") + sshlog("import paramiko", exc_info=True) + sshlog.error("Error: cannot enable SSH socket upgrades:") + sshlog.error(" %s", e) netlog("setting up SSL sockets: %s", csv(bind_ssl)) for host, iport in bind_ssl: add_tcp_socket("ssl", host, iport)