pgtoolkit/pgmanager.py
changeset 75 39f777341db4
parent 71 4251068a251a
child 77 2cfef775f518
equal deleted inserted replaced
74:d4306261ddfb 75:39f777341db4
    81 from psycopg2 import DatabaseError, IntegrityError, OperationalError
    81 from psycopg2 import DatabaseError, IntegrityError, OperationalError
    82 
    82 
    83 
    83 
    84 log_sql = logging.getLogger("pgmanager_sql")
    84 log_sql = logging.getLogger("pgmanager_sql")
    85 log_notices = logging.getLogger("pgmanager_notices")
    85 log_notices = logging.getLogger("pgmanager_notices")
       
    86 log_sql.addHandler(logging.NullHandler())
       
    87 # NullHandler not needed for notices which are INFO level only
    86 
    88 
    87 
    89 
    88 class PgManagerError(Exception):
    90 class PgManagerError(Exception):
    89 
    91 
    90     pass
    92     pass