kshirsagarmahesh opened a new issue #10976:
URL: https://github.com/apache/airflow/issues/10976


   **Description**
   
   Airflow bash operator to log error when command exits with non zero exit code
   
   **Use case / motivation**
   
   We monitor airflow dag logs to sniff out any errors. Currently the non zero 
exit code logs as INFO instead of ERROR like this:
   
   [2020-09-14 11:02:46,167] {local_task_job.py:102} INFO - Task exited with 
return code 1
   
   code location to be changed: 
   
https://github.com/apache/airflow/blob/1294e15d44c08498e7f1022fdd6f0bc5e50e533f/airflow/operators/bash.py#L162
   
   This will allow us create alerts when we see ERROR in the log file
   -->
   
   **Related Issues**
   None


----------------------------------------------------------------
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:
[email protected]


Reply via email to