-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore up to 30 consecutive malformed lines.
Previously, when the parser encountered a bad line, it would throw an exception and stop execution. This was a problem when trying to parse logs that contain malformed requests (e.g. due to someone trying to hack the server; yes, that has happened). Most of the file was still good, but the malformed lines caused the parser to stop half-way. Instead, lets ignore small amounts of parser errors and keep going. However, if there are lots of consecutive errors, that probably means the file is not actually a valid wp-update-server log, so lets stop then.
- Loading branch information
1 parent
be61a44
commit e5942ad
Showing
2 changed files
with
25 additions
and
3 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
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