Skip to content

Commit 98a1ca9

Browse files
author
Sean McQueen
authored
[AIRFLOW-6625] Explicitly log using utf-8 encoding (apache#7247) (twitter-forks#31)
This is the standard encoding supported by Airflow. We should be explicit about logging using this encoding.
1 parent 6a7505b commit 98a1ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow/utils/log/file_task_handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def set_context(self, ti):
5252
:param ti: task instance object
5353
"""
5454
local_loc = self._init_file(ti)
55-
self.handler = logging.FileHandler(local_loc)
55+
self.handler = logging.FileHandler(local_loc, encoding='utf-8')
5656
self.handler.setFormatter(self.formatter)
5757
self.handler.setLevel(self.level)
5858

0 commit comments

Comments
 (0)