Add -v CLI flag that prints all paper parsing errors #79
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Right now on parsing the papers we only count all errors, silently skipping failures and thus hiding their root cause.
scholar-alert-digest/papers/papers.go
Lines 46 to 48 in 7d2e4de
This leads to difficulties reproducing bugs like #76 as one needs to modify source code (by adding
log.Print(err)
toscholar-alert-digest/papers/papers.go
Lines 83 to 84 in 7d2e4de
Instead, it would be nice to have:
-v
flag that would print all the errorsmap[Subject][]error
) through paper parsing, as part of StatsThat would simplify the debugging, as users would be able to identify the offender emails and attach the specific HTMLs that causes errors.
The text was updated successfully, but these errors were encountered: