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

add setting key allowing to customize logging #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pawelmhm
Copy link
Member

it will default to logging.DEBUG but users can set this to something higher in case they dont want all the noise.

fixes #30

for future we can also add command line flag but for now settings may be enough.

it will default to logging.DEBUG but users can set this to something higher
in case they dont want all the noise.
loglevel = kwargs.get('level', INFO)
configured_log_level = scrapyrt_settings.LOG_LEVEL
if loglevel < configured_log_level:
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, why it isn't implemented as logging filter?

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

Successfully merging this pull request may close these issues.

scrapyrt logging is bit too noisy and not easy to customize
2 participants