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