mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-05-02 06:03:42 +03:00
Made changes to drop logging if program is being terminated. Credit to dvarrazzo
This commit is contained in:
parent
f511222705
commit
90cb3bb96a
|
@ -409,6 +409,8 @@ class LoggingConnection(_connection):
|
||||||
"""
|
"""
|
||||||
Public interface of the log method defined in initialize
|
Public interface of the log method defined in initialize
|
||||||
"""
|
"""
|
||||||
|
log = self._log()
|
||||||
|
if log:
|
||||||
return self._log()(*args, **kwargs)
|
return self._log()(*args, **kwargs)
|
||||||
|
|
||||||
def filter(self, msg, curs):
|
def filter(self, msg, curs):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user