commit | 6b1341a7f7363a96f1b6693d7785e7c113794ac6 | [log] [tgz] |
---|---|---|
author | koder aka kdanilov <kdanilov@mirantis.com> | Tue Apr 21 22:44:21 2015 +0300 |
committer | koder aka kdanilov <kdanilov@mirantis.com> | Tue Apr 21 22:44:21 2015 +0300 |
tree | f4beed3ef61a2a2dbdedc587a7cf31d82868cbbb | |
parent | ea7eac705e7aa032835393db3cbb526787babed9 [diff] [blame] |
fix python 2.6 compatibility
diff --git a/wally/config.py b/wally/config.py index 9626332..d8b7085 100644 --- a/wally/config.py +++ b/wally/config.py
@@ -95,7 +95,10 @@ else: record.levelname = prn_name - res = super(ColoredFormatter, self).format(record) + # super doesn't work here in 2.6 O_o + res = logging.Formatter.format(self, record) + + # res = super(ColoredFormatter, self).format(record) # restore record, as it will be used by other formatters record.__dict__ = orig