From 4770807c047c024d475def76497e92e1492dc1c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarjei=20Hus=C3=B8y?= Date: Sat, 21 Apr 2018 12:26:28 -0700 Subject: [PATCH] Log protocol exceptions --- postgres_mitm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postgres_mitm.py b/postgres_mitm.py index 93d7ac1..bc067b8 100755 --- a/postgres_mitm.py +++ b/postgres_mitm.py @@ -214,6 +214,8 @@ class ClientConnection(threading.Thread): else: _logger.info('Got TLS error when establishing connection: %s', exc.strerror) raise + except Exception as exc: + _logger.exception('Got exception during protocol handling: %s' % exc) finally: self.terminate()