From 1028ecf7bcb7d4e1cd05d8ab8480d916d1dfbe5c Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Sun, 18 Dec 2016 19:28:55 -0500 Subject: [PATCH] Don't filter db connection failure in quiet logs The user should know about the connection error even if they don't want "debug" or "info" level information in their extauth log. --- auth_mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth_mysql.py b/auth_mysql.py index 9a65917..a22d37d 100755 --- a/auth_mysql.py +++ b/auth_mysql.py @@ -53,7 +53,7 @@ try: database=MySQLdb.connect(db_host, db_user, db_pass, db_name) except: - logging.debug("Unable to initialize database, check settings!") + logging.error("Unable to initialize database, check settings!") time.sleep(10) sys.exit(1)