Skip to content
Snippets Groups Projects
Commit 3ee6edaa authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #10811: log notifications from the database

parent 8f437e0b
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,11 @@ class RADatabase: ...@@ -88,6 +88,11 @@ class RADatabase:
self.rollback() self.rollback()
return [] return []
if self.conn.notices:
for notice in self.conn.notices:
logger.info('database log message: %s', notice.strip())
del self.conn.notices[:]
if fetch == _FETCH_ONE: if fetch == _FETCH_ONE:
return self.cursor.fetchone() return self.cursor.fetchone()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment