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

Downgrade missing url log from warning to info #14108

Merged
merged 2 commits into from
Jun 19, 2024
Merged

Downgrade missing url log from warning to info #14108

merged 2 commits into from
Jun 19, 2024

Conversation

jlowin
Copy link
Member

@jlowin jlowin commented Jun 18, 2024

This log shows up very frequently when developing interactively, even when I have my log level set to WARNING, which I expect will only show me information that requires action or impairs performance. However, when developing or testing flows interactively, it is expected that no URL is available for the UI.

@jlowin jlowin requested a review from a team as a code owner June 18, 2024 14:28
@@ -152,7 +152,7 @@ def url_for(
base_url = base_url or default_base_url

if not base_url:
logger.warning(
logger.info(
Copy link
Member

Choose a reason for hiding this comment

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

I'd vote for this to be a debug-level log. It will likely show up on a user's first run and contains no info on how severe the issue is or how to resolve it. I see no upside to logging this to the user, but it is useful for internal users of this utility.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree with that. There are other logs in this function that even emit ERROR level information that no URL could be generated, which I will also downgrade to debug. If they are truly errors, the function should error, but it returns None

@jlowin jlowin merged commit 4ad66e7 into main Jun 19, 2024
26 checks passed
@jlowin jlowin deleted the downgrade-log branch June 19, 2024 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants