Skip to content

Commit

Permalink
log ssh errors using ssh logger
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@20008 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 3, 2018
1 parent 748215d commit f3571a0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/xpra/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f3571a0

Please sign in to comment.