Made changes to drop logging if program is being terminated. Credit to dvarrazzo

This commit is contained in:
Sharvil Patankar 2024-02-06 14:23:27 -05:00
parent f511222705
commit 90cb3bb96a

View File

@ -409,7 +409,9 @@ class LoggingConnection(_connection):
""" """
Public interface of the log method defined in initialize Public interface of the log method defined in initialize
""" """
return self._log()(*args, **kwargs) log = self._log()
if log:
return self._log()(*args, **kwargs)
def filter(self, msg, curs): def filter(self, msg, curs):
"""Filter the query before logging it. """Filter the query before logging it.