ashb commented on code in PR #68712:
URL: https://github.com/apache/airflow/pull/68712#discussion_r3435954301


##########
task-sdk/src/airflow/sdk/coordinators/_subprocess.py:
##########
@@ -301,6 +302,13 @@ def start(  # type: ignore[override]
                 ],
                 stdout=stdout_w.fileno(),
                 stderr=stderr_w.fileno(),
+                # A language SDK runtime cannot read Airflow's config, so 
propagate the
+                # resolved task log level via the environment at launch. 
StartupDetails
+                # arrives too late, the logs might already be produced by then.
+                env={
+                    **os.environ,
+                    "AIRFLOW__LOGGING__LOGGING_LEVEL": conf.get("logging", 
"logging_level", fallback="INFO"),

Review Comment:
   If we are doing this, we should also propagate the (probably badly names) 
namespace logger levels too?



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

Reply via email to