Skip to content

Commit

Permalink
Don't filter db connection failure in quiet logs
Browse files Browse the repository at this point in the history
The user should know about the connection error even if they don't want
"debug" or "info" level information in their extauth log.
  • Loading branch information
Andrew Engelbrecht committed Dec 19, 2016
1 parent 3bf855f commit 1028ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1028ecf

Please sign in to comment.