From 8aadabdb9b8f24b5924d76578efcc791abd86363 Mon Sep 17 00:00:00 2001 From: haliphax Date: Tue, 28 Feb 2023 14:07:01 -0600 Subject: [PATCH] fix exception logging in connection_lost --- xthulu/ssh/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xthulu/ssh/server.py b/xthulu/ssh/server.py index e3edcb6..5020886 100644 --- a/xthulu/ssh/server.py +++ b/xthulu/ssh/server.py @@ -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)