-
Notifications
You must be signed in to change notification settings - Fork 32
GH-598: second QA fix - first review #728
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
base: GH-598-first-QA-fix-second-rev
Are you sure you want to change the base?
Changes from all commits
0637769
0e53e04
bc95399
b9f6c64
1acd12d
f77eaa9
738ead8
af1a075
268eeba
77a1d1c
25af8cb
a151e96
a71cd1f
42eebcc
e82da77
858adfa
dd3bd6b
6dab798
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -256,6 +256,7 @@ impl Scanners { | |
| } | ||
|
|
||
| pub fn acknowledge_scan_error(&mut self, error: &ScanError, logger: &Logger) { | ||
| debug!(logger, "Acknowledging a scan that couldn't finish"); | ||
|
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. Bug: Insufficient logging detail in scan error handler (Bugbot Rules)The debug log in |
||
| match error.scan_type { | ||
| DetailedScanType::NewPayables | DetailedScanType::RetryPayables => { | ||
| self.payable.mark_as_ended(logger) | ||
|
|
@@ -794,11 +795,11 @@ mod tests { | |
| false | ||
| ); | ||
| let dumped_records = pending_payable_scanner | ||
| .yet_unproven_failed_payables | ||
| .suspected_failed_payables | ||
| .dump_cache(); | ||
| assert!( | ||
| dumped_records.is_empty(), | ||
| "There should be no yet unproven failures but found {:?}.", | ||
| "There should be no suspected failures but found {:?}.", | ||
| dumped_records | ||
| ); | ||
| assert_eq!( | ||
|
|
@@ -1199,7 +1200,9 @@ mod tests { | |
| ); | ||
| TestLogHandler::new().assert_logs_match_in_order(vec![ | ||
| &format!("INFO: {test_name}: Scanning for pending payable"), | ||
| &format!("DEBUG: {test_name}: Found 1 pending payables and 1 unfinalized failures to process"), | ||
| &format!( | ||
| "DEBUG: {test_name}: Found 1 pending payables and 1 suspected failures to process" | ||
| ), | ||
| ]) | ||
| } | ||
|
|
||
|
|
||
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.
Perhaps you could add more details to this log, using the contents of the error.