Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

respect aliases when loading custom logging.yaml #17162

Merged
merged 2 commits into from
Feb 20, 2025
Merged

respect aliases when loading custom logging.yaml #17162

merged 2 commits into from
Feb 20, 2025

Conversation

zzstoatzz
Copy link
Collaborator

@zzstoatzz zzstoatzz commented Feb 17, 2025

closes #17152

adds a new (default False) flag to to_environment_variables to dump alias keys

also adds type hints for all test cases in test_logging

@zzstoatzz zzstoatzz added the fix A fix for a bug in an existing feature label Feb 17, 2025
@github-actions github-actions bot added the bug Something isn't working label Feb 17, 2025
Copy link

codspeed-hq bot commented Feb 17, 2025

CodSpeed Performance Report

Merging #17162 will not alter performance

Comparing 17152 (f9d336d) with main (0888f84)

Summary

✅ 2 untouched benchmarks

@zzstoatzz zzstoatzz force-pushed the 17152 branch 3 times, most recently from bed05cc to 1a3aa1e Compare February 17, 2025 02:31
@zzstoatzz zzstoatzz marked this pull request as ready for review February 20, 2025 21:52
@@ -92,6 +92,7 @@ def to_environment_variables(
self,
exclude_unset: bool = False,
include_secrets: bool = True,
include_aliases: bool = False,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

important diff

@zzstoatzz zzstoatzz self-assigned this Feb 20, 2025
Copy link
Member

@desertaxle desertaxle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!

Copy link
Member

@cicdw cicdw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very clean!

@zzstoatzz zzstoatzz merged commit f6d728a into main Feb 20, 2025
50 checks passed
@zzstoatzz zzstoatzz deleted the 17152 branch February 20, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix A fix for a bug in an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyError: PREFECT_LOGGING_SERVER_LEVEL
4 participants