Open noviluni opened 5 years ago
I just added a draft PR with the code I used to get the log
in the examples.
It could help in some situations like this: https://github.com/scrapinghub/dateparser/issues/520#issuecomment-489556731
I expect to continue with this PR after merging this: https://github.com/scrapinghub/dateparser/pull/603 as it would be a good starting point :)
Related to this: https://github.com/scrapinghub/dateparser/pull/729
I was thinking about how to improve the "debugging" process when weird things happen...
And I realized that it could be really useful to add an option to "see" what happens behind the scenes. It could be, for example, a setting called
DEBUG_INFO
that whenTrue
shows relevant information to help you to understand what's happening.I was trying a little and that's what I got.
Input:
Log:
Out:
Input:
Log:
Out:
Input:
Log:
Out:
Input:
Log:
Out:
Input:
Log:
Out:
Of course there are a lot of new information that could appear in the
log
, that's just an idea.What do you think?