Commit 2a3e8ea5 authored by Andreas Jung's avatar Andreas Jung

fixed logger calls

parent 886cdb1e
...@@ -71,7 +71,7 @@ class Connection( ...@@ -71,7 +71,7 @@ class Connection(
try: self.connect(self.connection_string) try: self.connect(self.connection_string)
except: except:
logger.error('Error connecting to relational database.', logger.error('Error connecting to relational database.',
exc_info=exc_info()) exc_info=True)
def title_and_id(self): def title_and_id(self):
s=Connection.inheritedAttribute('title_and_id')(self) s=Connection.inheritedAttribute('title_and_id')(self)
...@@ -151,7 +151,7 @@ class Connection( ...@@ -151,7 +151,7 @@ class Connection(
self._v_database_connection.close() self._v_database_connection.close()
except: except:
logger.error('Error closing relational database connection.', logger.error('Error closing relational database connection.',
error=exc_info()) exc_info=True)
self._v_connected='' self._v_connected=''
if REQUEST is not None: if REQUEST is not None:
return self.manage_main(self, REQUEST) return self.manage_main(self, REQUEST)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment