Skip to content

Commit

Permalink
fix exception logging in connection_lost
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Feb 28, 2023
1 parent 81fec9a commit 8aadabd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xthulu/ssh/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def connection_lost(self, exc: Exception):

if exc:
if bool(get_config("debug.enabled", False)):
log.error(exc, stack_info=True, stacklevel=10)
log.error(exc.with_traceback(None))
else:
log.error(exc)

Expand Down

0 comments on commit 8aadabd

Please sign in to comment.