apilaskowski commented on code in PR #30485:
URL: https://github.com/apache/airflow/pull/30485#discussion_r1159812493
##########
airflow/cli/commands/celery_command.py:
##########
@@ -96,6 +99,31 @@ 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.has_option("logging", "reset_and_split_logging") and conf.get(
+ "logging", "reset_and_split_logging"
+ ):
+ airflow_formatter = logging.Formatter(conf.get("logging",
"log_format"))
Review Comment:
Please confirm whether current solution is ok.
##########
airflow/cli/commands/celery_command.py:
##########
@@ -96,6 +99,31 @@ 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.has_option("logging", "reset_and_split_logging") and conf.get(
+ "logging", "reset_and_split_logging"
+ ):
+ airflow_formatter = logging.Formatter(conf.get("logging",
"log_format"))
Review Comment:
Please let me know whether current solution is ok.
--
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]