From 8442cf691e4bb20717d3f30ca145320a6449d269 Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 16 Oct 2019 08:39:35 +0200 Subject: [PATCH] core (log): removed Android hack: this hack is not needed anymore with Python 3 port and was actually causing a crash. --- sat/core/log_config.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sat/core/log_config.py b/sat/core/log_config.py index 7318be4e..ef64604b 100644 --- a/sat/core/log_config.py +++ b/sat/core/log_config.py @@ -333,7 +333,6 @@ class ConfigureStandard(ConfigureBasic): def configureFormat(self, fmt): super(ConfigureStandard, self).configureFormat(fmt) import logging - import sys class SatFormatter(logging.Formatter): """Formatter which manage SàT specificities""" @@ -359,12 +358,7 @@ class ConfigureStandard(ConfigureBasic): s = super(SatFormatter, self).format(record) if do_color: s = ConfigureStandard.ansiColors(record.levelname, s) - if sys.platform == "android": - # FIXME: dirty hack to workaround android encoding issue on log - # need to be fixed properly - return s.encode("ascii", "ignore") - else: - return s + return s self.formatterClass = SatFormatter