diff options
author | 2016-11-11 02:15:30 +0000 | |
---|---|---|
committer | 2016-11-11 02:15:30 +0000 | |
commit | 17328cc3f88131cfdfb0fe0833336a583a191f97 (patch) | |
tree | 858fc8a56cfe0ce2e28e61dd8d56ef519ba8dcf9 /deploy/log.py | |
parent | 9dc55a9dc191d61e35d34042afd310626cb32538 (diff) | |
parent | 404fcf8f737f405da7fd2e61441dd20a57d63935 (diff) |
Merge "autopep8 make py files more standard"
Diffstat (limited to 'deploy/log.py')
-rw-r--r-- | deploy/log.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deploy/log.py b/deploy/log.py index 1c20f37e..909d9377 100644 --- a/deploy/log.py +++ b/deploy/log.py @@ -1,6 +1,8 @@ import logging import os loggers = {} + + def getLogger(name): if name in loggers: return loggers[name] @@ -23,7 +25,8 @@ def getLogger(name): ch.setLevel(logging.ERROR) # create formatter and add it to the handlers - formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") + formatter = logging.Formatter( + "%(asctime)s - %(name)s - %(levelname)s - %(message)s") ch.setFormatter(formatter) fh.setFormatter(formatter) @@ -33,4 +36,3 @@ def getLogger(name): loggers[name] = logger return logger - |