From ad9621641f4fc4c26d4e37bc1e7cda1b58b34dff Mon Sep 17 00:00:00 2001 From: Angelina Tingaeva Date: Mon, 4 Dec 2023 11:04:16 +0500 Subject: [PATCH] refeactor(logging): try to encode logs --- logging_config.py | 3 ++- mapping.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logging_config.py b/logging_config.py index 5b693c3..9017139 100644 --- a/logging_config.py +++ b/logging_config.py @@ -11,7 +11,8 @@ def setup_logging(name): file_handler = logging.FileHandler( filename=f"{name}.log", - mode='w' + mode='w', + encoding="UTF-8" #maxBytes=1024*1024, #backupCount=5 ) diff --git a/mapping.py b/mapping.py index 55384ce..c2788c8 100644 --- a/mapping.py +++ b/mapping.py @@ -115,7 +115,6 @@ def create_tasks_in_tracker(data): # 'completedAt': task['completedAt'] } - logger.debug('Request: %s', json.dumps(payload)) response = requests.post(