forked from orbit-oss/flask
fix pep8 with logging.py
This commit is contained in:
parent
aaebe9fe25
commit
1b7fad3716
1 changed files with 3 additions and 3 deletions
|
|
@ -57,10 +57,10 @@ def create_logger(app):
|
||||||
Logger = getLoggerClass()
|
Logger = getLoggerClass()
|
||||||
|
|
||||||
class DebugLogger(Logger):
|
class DebugLogger(Logger):
|
||||||
def getEffectiveLevel(x):
|
def getEffectiveLevel(self):
|
||||||
if x.level == 0 and app.debug:
|
if self.level == 0 and app.debug:
|
||||||
return DEBUG
|
return DEBUG
|
||||||
return Logger.getEffectiveLevel(x)
|
return Logger.getEffectiveLevel(self)
|
||||||
|
|
||||||
class DebugHandler(StreamHandler):
|
class DebugHandler(StreamHandler):
|
||||||
def emit(self, record):
|
def emit(self, record):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue