diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2015-09-21 20:15:08 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2015-09-21 20:15:08 -0500 |
commit | 5b0a2d1ba24a210a66a91cc1755f4e24fd8a9b7f (patch) | |
tree | 0c7aa96948e6d2454cba8c02dd9df568e4e5450c /src/lib/Bcfg2/Logger.py | |
parent | 31a5ce757295e841e72e0149c5851ceace976b44 (diff) | |
parent | 0b134db92988114ef2410ea431875ad9b938b7fb (diff) | |
download | bcfg2-5b0a2d1ba24a210a66a91cc1755f4e24fd8a9b7f.tar.gz bcfg2-5b0a2d1ba24a210a66a91cc1755f4e24fd8a9b7f.tar.bz2 bcfg2-5b0a2d1ba24a210a66a91cc1755f4e24fd8a9b7f.zip |
Merge pull request #310 from AlexanderS/fix/logging
Logging: Fix message building
Diffstat (limited to 'src/lib/Bcfg2/Logger.py')
-rw-r--r-- | src/lib/Bcfg2/Logger.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Logger.py b/src/lib/Bcfg2/Logger.py index 11eaeebd1..e5f316a18 100644 --- a/src/lib/Bcfg2/Logger.py +++ b/src/lib/Bcfg2/Logger.py @@ -41,6 +41,8 @@ class TermiosFormatter(logging.Formatter): returns = [] line_len = self.width if isinstance(record.msg, str): + if len(record.args) != 0: + record.msg = record.msg % record.args for line in record.msg.split('\n'): if len(line) <= line_len: returns.append(line) |