Skip to content

Commit 7a834d6

Browse files
authored
Fix task SDK connection error handling to match airflow-core behavior (#56650)
1 parent b0421df commit 7a834d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

task-sdk/src/airflow/sdk/execution_time/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def _get_connection(conn_id: str) -> Connection:
160160
_mask_connection_secrets(conn)
161161
return conn
162162
except Exception:
163-
log.exception(
163+
log.debug(
164164
"Unable to retrieve connection from secrets backend (%s). "
165165
"Checking subsequent secrets backend.",
166166
type(secrets_backend).__name__,
@@ -206,7 +206,7 @@ async def _async_get_connection(conn_id: str) -> Connection:
206206
return conn
207207
except Exception:
208208
# If one backend fails, try the next one
209-
log.exception(
209+
log.debug(
210210
"Unable to retrieve connection from secrets backend (%s). "
211211
"Checking subsequent secrets backend.",
212212
type(secrets_backend).__name__,

0 commit comments

Comments
 (0)