Pass arguments to the logger the correct way

This commit is contained in:
Roberto Rosario
2014-11-02 20:55:21 -04:00
parent 654022807f
commit ba1729106f
30 changed files with 106 additions and 107 deletions

View File

@@ -261,13 +261,13 @@ def _lazy_load(fn):
def load_backend(backend_string):
logger.debug('loading: %s' % backend_string)
logger.debug('loading: %s', backend_string)
module_name, klass = backend_string.rsplit('.', 1)
try:
return getattr(import_module(module_name), klass)
except ImportError as exception:
logger.debug('error importing: %s; %s' % (backend_string, exception))
logger.debug('error importing: %s; %s', backend_string, exception)
raise