apify / actor-templates

This project is the :house: home of Apify actor template projects to help users quickly get started.
https://apify.com/
25 stars 14 forks source link

Fix set logging level in Python Scrapy template #185

Closed vdusek closed 11 months ago

vdusek commented 1 year ago

In the src/__main__.py module we provide an option for setting up a logging level.

This option does not work, the logging level is always set to DEBUG.

It is probably caused by the overriding of the logging setup by Scrapy.

The order of the imports and other commands should solve the issue.