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

log: filter requests to /health from localhost #566

Merged
merged 2 commits into from May 24, 2023

Conversation

tessus
Copy link
Contributor

@tessus tessus commented May 23, 2023

fixes #428

I have tested it and it works perfectly. Returning an empty string will not print an empty line, but doesn't output a line at all. I added the if block at the top so that it's an early exit without unnecessary processing if a match occurs.

@tessus tessus requested a review from a team as a code owner May 23, 2023 20:42
router/router.go Outdated Show resolved Hide resolved
Copy link
Member

@jmattheis jmattheis left a comment

Choose a reason for hiding this comment

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

👍

@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.11 ⚠️

Comparison is base (62a1c99) 86.20% compared to head (7f00a59) 86.09%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #566      +/-   ##
==========================================
- Coverage   86.20%   86.09%   -0.11%     
==========================================
  Files          45       45              
  Lines        1566     1568       +2     
==========================================
  Hits         1350     1350              
- Misses        136      137       +1     
- Partials       80       81       +1     
Impacted Files Coverage Δ
router/router.go 88.00% <0.00%> (-1.80%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jmattheis jmattheis merged commit 8f51a2c into gotify:master May 24, 2023
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Remove "/health" from logging?
2 participants