-
Notifications
You must be signed in to change notification settings - Fork 9
fix: remove processing information of unwanted files #230
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
Conversation
834c4d0
to
970759c
Compare
src/test/java/com/aws/greengrass/logmanager/LogManagerServiceTest.java
Outdated
Show resolved
Hide resolved
806b821
to
4c303dc
Compare
Unit Tests Coverage Report
Minimum allowed coverage is Generated by 🐒 cobertura-action against 4bb27bd |
Integration Tests Coverage Report
Minimum allowed coverage is Generated by 🐒 cobertura-action against 4bb27bd |
src/integrationtests/java/com/aws/greengrass/integrationtests/logmanager/LogManagerTest.java
Show resolved
Hide resolved
// Must set an MDC adapter for 1.3.8+. https://github.com/qos-ch/logback/issues/709 | ||
loggerContext.setMDCAdapter(new NOPMDCAdapter()); | ||
loggerContext.setMDCAdapter(new BasicMDCAdapter()); | ||
// loggerContext.setMDCAdapter(new NOPMDCAdapter()); |
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.
Nit: Remove instead of commenting out
import ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy; | ||
import ch.qos.logback.core.util.FileSize; | ||
import org.slf4j.helpers.BasicMDCAdapter; | ||
import org.slf4j.helpers.NOPMDCAdapter; |
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 import is now unused
Approving as my comments are mostly nit-picks. |
Issue #, if available:
Description of changes:
lastComponentUploadedTime
parameter to bothloadProcessingFilesConfig()
andloadProcessingFilesConfigDeprecated()
to not load stale information from the persisted configuration.Why is this change necessary:
How was this change tested:
Any additional information or context required to review the change:
Checklist:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.