changeset ba7b1db9ad7d in /home/hg/repos/gajim
author: Yann Leboulanger <[email protected]>
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=ba7b1db9ad7d
description: use sys.stderr.isatty() to decide if we use colors in log output
or not.
diffstat:
src/gajim.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r dabb86f96777 -r ba7b1db9ad7d src/gajim.py
--- a/src/gajim.py Sun Mar 02 11:26:52 2014 +0100
+++ b/src/gajim.py Sat Mar 08 10:07:40 2014 +0100
@@ -115,7 +115,7 @@
sys.path.append('.')
from common import logging_helpers
-logging_helpers.init('TERM' in os.environ)
+logging_helpers.init(sys.stderr.isatty())
import logging
# gajim.gui or gajim.gtk more appropriate ?
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits