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

[SDCISA-13736, SDCISA-10974] Fix bad habits in HttpResourceStorage. #539

Conversation

hiddenalpha
Copy link
Member

No description provided.

Copy link

codecov bot commented Jan 4, 2024

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (ca605d1) 47.70% compared to head (065bd42) 47.68%.
Report is 10 commits behind head on develop.

Files Patch % Lines
...ush/gateleen/core/storage/HttpResourceStorage.java 0.00% 18 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #539      +/-   ##
=============================================
- Coverage      47.70%   47.68%   -0.02%     
- Complexity      1784     1785       +1     
=============================================
  Files            225      225              
  Lines          11704    11713       +9     
  Branches        1227     1225       -2     
=============================================
+ Hits            5583     5585       +2     
- Misses          5634     5640       +6     
- Partials         487      488       +1     

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

log.warn("Failed request to {}: {}", path, asyncResult.cause());
log.warn("Failed request to {}", path, new Exception("stacktrace", asyncResult.cause()));
log.error/*TODO*/("TODO why do we NOT report this error to bodyHandler?!? Is this"
+ " maybe the reason for all our mysterious timeouts everywhere? (ERR_jGQCALsBAgBJeA)");
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should not add logs for personal bug hunting to the codebase. Just build your own release locally and add the logs there.

log.warn("Failed request to {}: {}", uri, asyncResult.cause());
log.warn("Failed request to {}", uri, new Exception("stacktrace", asyncResult.cause()));
log.error/*TODO*/("TODO why do we not report this error to our caller?!? Is this maybe"
+ " the explanation for all our unexplainable timeouts or lost messages we"
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should not add logs for personal bug hunting to the codebase. Just build your own release locally and add the logs there

@hiddenalpha hiddenalpha merged commit 0817082 into swisspost:develop Jan 5, 2024
1 of 3 checks passed
@hiddenalpha hiddenalpha deleted the SDCISA-13736-FixBadHabits-HttpResourceStorage branch January 5, 2024 14:24
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

2 participants