use sys.stderr.isatty() to decide if we use colors in log output or not.

This commit is contained in:
Yann Leboulanger 2014-03-08 10:07:40 +01:00
parent e425bc317e
commit b69a0c291d
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ if os.name == 'nt':
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 ?