From be9027f36f751f828d0ce0c98ec1b6e7466c45b5 Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 13 Nov 2013 17:42:21 +1100 Subject: [PATCH] replace write to stderr with LOGGER in failed database connection attempt --- gluon/dal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/dal.py b/gluon/dal.py index 6005634b..58e8a73c 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -7768,7 +7768,7 @@ class DAL(object): raise except Exception: 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: break else: