Refactor delete handling and improve logging in event processing
- Updated the HandleDelete function to allow delete events to be stored even if no valid targets are found, enhancing flexibility in event management. - Improved logging to provide clearer insights when no deletions are processed, ensuring that issues are logged without blocking event acceptance. - Refactored SHA256 validation tests and adjusted expected values to ensure accuracy in hash comparisons. - Enhanced various test cases to improve coverage and reliability across the application.
This commit is contained in:
@@ -23,7 +23,7 @@ func TestMain(m *testing.M) {
|
||||
log.W = lol.GetNullPrinter()
|
||||
log.E = lol.GetNullPrinter()
|
||||
log.F = lol.GetNullPrinter()
|
||||
|
||||
|
||||
// Also suppress badger logs
|
||||
os.Setenv("BADGER_LOG_LEVEL", "CRITICAL")
|
||||
}
|
||||
@@ -31,4 +31,3 @@ func TestMain(m *testing.M) {
|
||||
// Run tests
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user