This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
SweeperService logging improvements #2618
Merged
Merged
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c3376ab
SweeperServiceImpl now logs when it starts sweeping make it clear if …
tboam b067262
Added sweep parameters to the log lines
tboam 1b649ea
Merge branch 'develop' into logs/sweep-service-logging
tboam 19239bc
Fix release notes
fsamuel-bs 606617e
Merge branch 'develop' into logs/sweep-service-logging
tboam c14c7b7
no longer default the service parameter in the interface, this way we…
tboam 3b22141
Merge branch 'develop' into logs/sweep-service-logging
tboam 3b89c73
Checkstyle
fsamuel-bs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will be ever triggered, as we have the
@Safe @QueryParam("fullSweep") @DefaultValue("true") Optional<Boolean> fullSweep
on the interface. Still, it doesn't seem harmless — the only drawback is that when changing the default, we probably want to change it in two places, which are not that far apart.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is irritating - there's no way to distinguish when the value was filled in by the web container.
Ho would you feel about removing the
@Default
annotation? The default is still to true and documentation is unchanged, but then the defaulting no longer happens near where it is documented which is going to cause them to get out of sync.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to log this at warn when we have the below info logs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to call attention to this if it happens - people shouldn't be using this endpoint in normal operation and there's a good chance it was called by mistake.