equal
deleted
inserted
replaced
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 |