You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/01/11 14:19:52 UTC

[GitHub] RasPavel commented on a change in pull request #4474: [AIRFLOW-3439] Decode logs with 'utf-8'

RasPavel commented on a change in pull request #4474: [AIRFLOW-3439] Decode logs with  'utf-8'
URL: https://github.com/apache/airflow/pull/4474#discussion_r247129691
 
 

 ##########
 File path: airflow/utils/log/gcs_task_handler.py
 ##########
 @@ -129,7 +129,7 @@ def gcs_read(self, remote_log_location):
         :type remote_log_location: str (path)
         """
         bkt, blob = self.parse_gcs_url(remote_log_location)
-        return self.hook.download(bkt, blob).decode()
+        return self.hook.download(bkt, blob).decode('utf-8')
 
 Review comment:
   Exactly, I get encoding error with python 2.7, forgot to mention that

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services