this is to make gholt happy; well less unhappy
This commit is contained in:
@@ -26,10 +26,10 @@ class CatchErrorMiddleware(object):
|
||||
|
||||
def __init__(self, app, conf):
|
||||
self.app = app
|
||||
try:
|
||||
# if the application already has a logger we should use that one
|
||||
self.logger = app.logger
|
||||
except AttributeError:
|
||||
# if the application already has a logger we should use that one
|
||||
self.logger = getattr(app, 'logger', None)
|
||||
if not self.logger:
|
||||
# and only call get_logger if we have to
|
||||
self.logger = get_logger(conf)
|
||||
|
||||
def __call__(self, env, start_response):
|
||||
|
||||
Reference in New Issue
Block a user