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/07/12 00:29:30 UTC

[GitHub] [airflow] knowsuchagency commented on a change in pull request #5543: Fix permission error when creating logs

knowsuchagency commented on a change in pull request #5543: Fix permission error when creating logs
URL: https://github.com/apache/airflow/pull/5543#discussion_r302790233
 
 

 ##########
 File path: airflow/utils/log/file_processor_handler.py
 ##########
 @@ -84,7 +84,7 @@ def close(self):
             self.handler.close()
 
     def _render_filename(self, filename):
-        filename = os.path.relpath(filename, self.dag_dir)
+        filename = os.path.relpath(filename, self.dag_dir).replace("../", "")
 
 Review comment:
   yeah, it's a bit hacky, I agree.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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