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 2018/12/26 12:26:39 UTC
[GitHub] XD-DENG commented on a change in pull request #4372: AIRFLOW-3567
Show an error in case logs can't be fetched from S3
XD-DENG commented on a change in pull request #4372: AIRFLOW-3567 Show an error in case logs can't be fetched from S3
URL: https://github.com/apache/incubator-airflow/pull/4372#discussion_r243989664
##########
File path: airflow/utils/log/s3_task_handler.py
##########
@@ -124,7 +124,8 @@ def s3_log_exists(self, remote_log_location):
try:
return self.hook.get_key(remote_log_location) is not None
except Exception:
- pass
+ msg = 'Could not list logs at {}'.format(remote_log_location)
+ self.log.exception(msg)
Review comment:
Maybe not necessary to have this intermediary variable `msg` here?
----------------------------------------------------------------
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