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

Use debug logging for channel types errors, D3 and WA #5681

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

norkans7
Copy link

response = requests.get(
channel.config[Channel.CONFIG_BASE_URL] + "/v1/health", headers=self.get_headers(channel)
)

if response.status_code != 200:
raise requests.RequestException("Could not check api status", response=response)
HTTPLog.from_exception(
Copy link
Member

Choose a reason for hiding this comment

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

@norkans7 why move this logic into each channel type?

Copy link
Author

Choose a reason for hiding this comment

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

We are no longer rairing the exception here so to keep the Http log created for update API version check we need that here

Copy link
Member

Choose a reason for hiding this comment

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

ok I see that this only affects two legacy channel types.. it's fine

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (0f1aaf7) to head (b6cb315).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main     #5681    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          570       570            
  Lines        25881     26259   +378     
==========================================
+ Hits         25881     26259   +378     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@rowanseymour rowanseymour merged commit c663ee6 into main Nov 22, 2024
5 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 22, 2024
@rowanseymour rowanseymour deleted the logger-debug branch November 22, 2024 16:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants