-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better validation and error reporting while processing logs.
Invalid log files could be undetected until much later, such as until they're being converted from .xz to .tar.xz in create_archive(). Now process_logs() performs some basic validation: the log must be readable (not bad gzip), not empty, and every line must be valid JSON. It also tries to read every log file instead of stopping at the first error, and prints the bad filenames and the exceptions at the end.
- Loading branch information
Showing
1 changed file
with
30 additions
and
10 deletions.
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