Permalink
Browse files

always log python/MySQLdb warnings at 'debug' level only

  • Loading branch information...
abg committed Aug 27, 2012
1 parent 6b22f72 commit d4f26f79fed16949b447386184ce11854e5f6123
Showing with 1 addition and 5 deletions.
  1. +1 −5 holland/core/util/bootstrap.py
@@ -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()

0 comments on commit d4f26f7

Please sign in to comment.