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 2021/08/24 16:37:17 UTC

[GitHub] [airflow] whitleykeith commented on issue #16001: Can't view running tasks logs using KubernetesExecutor.

whitleykeith commented on issue #16001:
URL: https://github.com/apache/airflow/issues/16001#issuecomment-904798933


   I've had this issue for a while now, but I was able to resolve it by adding this to the top of my `dag.py` file.
   
   
   ```python
   # Set Task Logger to INFO for better task logs
   log = logging.getLogger("airflow.task")
   handler = logging.StreamHandler(sys.stdout)
   handler.setLevel(logging.INFO)
   log.addHandler(handler)
   ```
   
   It does pretty much what @hsnprsd had in his class, but doesn't require overriding the default logging config. 


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org