Skip to content

Change Variable not found log level from error to debug#61625

Merged
kaxil merged 1 commit intoapache:mainfrom
andreahlert:fix/variable-log-level-with-default
Feb 8, 2026
Merged

Change Variable not found log level from error to debug#61625
kaxil merged 1 commit intoapache:mainfrom
andreahlert:fix/variable-log-level-with-default

Conversation

@andreahlert
Copy link
Contributor

@andreahlert andreahlert commented Feb 8, 2026

Closes: #52771

When Variable.get() is called with a default value and the variable is
not found, the error-level log in the API client causes unnecessary log spam
and false alerts in monitoring systems like Sentry.

This changes the log level in VariableOperations.get() from error to
debug, consistent with ConnectionOperations.get() which already uses
debug for the same scenario.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@andreahlert andreahlert force-pushed the fix/variable-log-level-with-default branch from 1421a29 to ea7b03c Compare February 8, 2026 07:36
When Variable.get() is called with a default value and the variable
is not found, the error-level log in the API client causes unnecessary
log spam and false alerts in monitoring systems like Sentry.

This changes the log level in VariableOperations.get() from error to
debug, consistent with ConnectionOperations.get() which already uses
debug for the same scenario.

Closes: apache#52771
@andreahlert andreahlert force-pushed the fix/variable-log-level-with-default branch from ea7b03c to 5e25ccb Compare February 8, 2026 08:06
@kaxil kaxil merged commit 40ad5e4 into apache:main Feb 8, 2026
101 checks passed
jhgoebbert pushed a commit to jhgoebbert/airflow_Owen-CH-Leung that referenced this pull request Feb 8, 2026
…er (apache#61625)

When Variable.get() is called with a default value and the variable
is not found, the error-level log in the API client causes unnecessary
log spam and false alerts in monitoring systems like Sentry.

This changes the log level in VariableOperations.get() from error to
debug, consistent with ConnectionOperations.get() which already uses
debug for the same scenario.

Closes: apache#52771
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change the log level for "Variable not found" from error to debug when a default is provided.

2 participants