Skip to content

Commit

Permalink
always log python/MySQLdb warnings at 'debug' level only
Browse files Browse the repository at this point in the history
  • Loading branch information
abg committed Aug 27, 2012
1 parent 6b22f72 commit d4f26f7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions holland/core/util/bootstrap.py
Expand Up @@ -32,11 +32,7 @@ def log_warnings(message, category, filename, lineno, file=None, line=None):
category,
filename,
lineno)
if category == DeprecationWarning:
WARNLOG.debug("%s", warning_string)
else:
WARNLOG.debug(warning_string)
WARNLOG.warn("%s", message)
WARNLOG.debug("%s", warning_string)

def setup_logging(opts):
clear_root_handlers()
Expand Down

0 comments on commit d4f26f7

Please sign in to comment.