-
Notifications
You must be signed in to change notification settings - Fork 188
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
Updated logrotate frequency to allow for an override #1814
Merged
Merged
Changes from 5 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
758e89b
Updated logrotate frequency to allow for an override by listing addit…
kdorosh 4623ebd
Fix checkstyle on .* import for mockito.
kdorosh e50f527
Update POJOs to use Optional the way it's supposed to be used.
kdorosh 25be9f8
Really need to figure out how to stop IntelliJ from doing this.
kdorosh 025c732
Update to deserialize to Guava Optionals.
kdorosh 8cbb242
Fix handlebars template apply error when logrotateFrequencyOverride i…
kdorosh 2552650
Very silly error wrapping an extra Optional and fixing whitespace.
kdorosh c94a606
Jackson can deserialize Optionals to Strings, so put that back.
kdorosh 152eb8c
Make parameters final that can be made final.
kdorosh bcc0379
Updated logrotate to support hourly rotates via separate config direc…
kdorosh 2631ba5
Consistent spacing.
kdorosh 5092d6b
Bug in getAllExtraFiles and some nitpicking formatting.
kdorosh 10b1b98
Add forgotten @Provides annotation for new logrotate template.
kdorosh 76d30af
Fix bug with calling Optional.get on potentially absent global hourly…
kdorosh 1fe3159
Part two to Optional.get on absent global frequency bug.
kdorosh 6a17308
No longer calling Optional.get on a findFirst() that may return absent.
kdorosh d1255c0
Proper equality comparison.
kdorosh 79f9fd3
Prevent duplicated hourly/non-hourly entries in both configs.
kdorosh 1d293fb
Proper cleanup of second logrotate config.
kdorosh 09de273
Rename methods and replace java.util Optional with Guava Optional.
kdorosh a8f6a7b
Don't enforce directory present in config, create if doesn't exist
ssalinas c62b6e0
make these log levels debug instead
ssalinas b9053f6
check exists on each before delete
ssalinas 7ba27b0
fix this if statement
ssalinas 2873512
Always attempt to remove file if exists
ssalinas cd13a97
Missing !
ssalinas 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,8 @@ public List<LogrotateAdditionalFile> getExtrasFiles() { | |
new LogrotateAdditionalFile( | ||
taskDefinition.getTaskDirectoryPath().resolve(additionalFile.getFilename()).toString(), | ||
additionalFile.getExtension().or(Strings.emptyToNull(Files.getFileExtension(additionalFile.getFilename()))), | ||
dateformat | ||
dateformat, | ||
additionalFile.getLogrotateFrequencyOverride() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We'll want to be consistent on the indent here before we merge up to master. |
||
)); | ||
} | ||
|
||
|
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.
Curious why you removed the optionals from the arguments. Both cases should work for that particular usage but there are a few things to keep in mind: