replace write to stderr with LOGGER in failed database connection attempt

This commit is contained in:
tim committed 2013-11-13 17:42:21 +11:00
1 parent 9bb4155460
commit be9027f36f
1 file changed
+1 -1
+1 -1
View File
@@ -7768,7 +7768,7 @@ class DAL(object):
raise raise
except Exception: except Exception:
tb = traceback.format_exc() tb = traceback.format_exc()
sys.stderr.write('DEBUG: connect attempt %i, connection error:\n%s' % (k, tb)) LOGGER.debug('DEBUG: connect attempt %i, connection error:\n%s' % (k, tb))
if connected: if connected:
break break
else: else: