henry3260 commented on code in PR #60258:
URL: https://github.com/apache/airflow/pull/60258#discussion_r2671877847
##########
shared/logging/src/airflow_shared/logging/percent_formatter.py:
##########
@@ -85,7 +90,8 @@ def __getitem__(self, key):
return ""
return self.level_styles.get(self.event.get("level",
self.method_name), "")
- return self.event[key]
+ val = self.event.get(key)
+ return val if val is not None else ""
Review Comment:
Or keep in simple we use `return self.event.get(key) ` ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]