millin opened a new pull request #15163:
URL: https://github.com/apache/airflow/pull/15163


   Optional LogRecord attributes cannot be added to log_format due to format 
exception.
   This happened because ElasticSearch drops keys with null value from record.
   
   Configurations to reproduce:
   ```
   [logging]
   remote_logging = True
   log_format = [%%(asctime)s] {%%(filename)s:%%(lineno)d} %%(levelname)s - 
%%(message)s - %%(exc_text)s
   
   [elasticsearch]
   json_format = True
   json_fields = asctime, filename, lineno, levelname, message, exc_text
   ```
   
   


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