diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-04 13:25:38 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-11 13:26:27 +0100 |
commit | f794ea45e69880148f12b44e929a2039b8d7b9b0 (patch) | |
tree | 5ac86057ee96883d9b9d8e5a832409a747a1576f | |
parent | 82665d5a655fab6adea0ab0fac6151ecf285312d (diff) | |
download | morph-f794ea45e69880148f12b44e929a2039b8d7b9b0.tar.gz |
import: Fix logging formatter to actually work
Caveat: requires a cliapp version newer than the one currently in Baserock.
-rw-r--r-- | import/main.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/import/main.py b/import/main.py index 3ef66fe1..82074dbb 100644 --- a/import/main.py +++ b/import/main.py @@ -289,10 +289,10 @@ class BaserockImportApplication(cliapp.Application): metavar='PATH', default=os.path.abspath('./checkouts')) - def setup_logging_format(self): - # FIXME: due to a bug in cliapp, this method is actually - # never called! :( - return "main: %(levelname)s: %(message)s" + def setup_logging_formatter_for_file(self): + # You need recent cliapp for this to work, with commit "Split logging + # setup into further overrideable methods". + return logging.Formatter("main: %(levelname)s: %(message)s") def setup_logging_for_import_plugins(self): log = self.settings['log'] |