Skip to content
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

Too much output when key is frequently not found when processing #457

Open
mariekevh opened this issue Nov 22, 2018 · 3 comments
Open

Too much output when key is frequently not found when processing #457

mariekevh opened this issue Nov 22, 2018 · 3 comments
Assignees

Comments

@mariekevh
Copy link
Collaborator

Every time key is not found when processing documents, the following is printed:

WARNING:INCA:Key not found in document
dict_keys(['feedurl', 'title_rss', 'doctype', 'title', 'teaser_rss', 'META', 'publication_date', 'htmlsource', 'url'])

This results into a lot of output if key is frequently not present.

Possible solution: Change it into one line, e.g. Key not found in XX out of XX documents.

@damian0604
Copy link
Contributor

One way to supress warnings is instaniating INCA as follows:

In [1]: from inca import Inca
In [2]: myinca = Inca(verbose=False)

Maybe we should change it in a way as you suggested nevertheless...

@mariekevh
Copy link
Collaborator Author

But verbose=False also suppresses all other warnings as well, which might be useful warnings. I can look into changing this sometime soon

@damian0604
Copy link
Contributor

OK! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants