apilaskowski commented on code in PR #30485:
URL: https://github.com/apache/airflow/pull/30485#discussion_r1160557556


##########
airflow/cli/commands/celery_command.py:
##########
@@ -96,6 +99,32 @@ def _serve_logs(skip_serve_logs: bool = False):
         sub_proc.terminate()
 
 
+@after_setup_logger.connect()
+def logger_setup_handler(logger, **kwargs):
+    # Setup levels at which logs go to stderr and stdout if required
+    if conf.get("logging", "celery_logging_split", fallback=None):
+        # This format is copied from:
+        # https://github.com/celery/celery/blob/main/celery/app/defaults.py
+        # We want it to look the same as Celery itself
+        DEFAULT_TASK_LOG_FMT = "[%(asctime)s: %(levelname)s/%(processName)s]"\

Review Comment:
   We can. I did now.
   Updated.



-- 
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-unsubscr...@airflow.apache.org

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

Reply via email to