diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-09-24 18:38:57 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-09-24 18:38:57 -0700 |
commit | 90b6cfd005f5af90991fe93e5a08c8a8849e2a6d (patch) | |
tree | 87bd63ad6e5b814e61b1deba76cd5a4e01b2f3a3 /cloudinit/patcher.py | |
parent | 0be941f74f54ecafcb628451f531b90f30723fbc (diff) | |
parent | 67e7d9c0280c3204cf503113d9dca769399eefc9 (diff) | |
download | vyos-cloud-init-90b6cfd005f5af90991fe93e5a08c8a8849e2a6d.tar.gz vyos-cloud-init-90b6cfd005f5af90991fe93e5a08c8a8849e2a6d.zip |
Update to bring inline with trunk/head.
Diffstat (limited to 'cloudinit/patcher.py')
-rw-r--r-- | cloudinit/patcher.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cloudinit/patcher.py b/cloudinit/patcher.py index 8921a79a..0f3c034e 100644 --- a/cloudinit/patcher.py +++ b/cloudinit/patcher.py @@ -23,7 +23,8 @@ import logging import sys # Default fallback format -FALL_FORMAT = 'FALLBACK: %(asctime)s - %(filename)s[%(levelname)s]: %(message)s' +FALL_FORMAT = ('FALLBACK: %(asctime)s - %(filename)s[%(levelname)s]: ' + + '%(message)s') class QuietStreamHandler(logging.StreamHandler): @@ -39,7 +40,8 @@ def _patch_logging(): # sys.stderr using a fallback logger fallback_handler = QuietStreamHandler(sys.stderr) fallback_handler.setFormatter(logging.Formatter(FALL_FORMAT)) - def handleError(self, record): + + def handleError(self, record): # pylint: disable=W0613 try: fallback_handler.handle(record) fallback_handler.flush() |