Skip to content

Commit

Permalink
Revert changes in __main__
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Sep 5, 2023
1 parent d079de4 commit 4f3bdba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions templates/python-scrapy/src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
# We need to configure the logging first before we import anything else,
# so that nothing else imports `scrapy.utils.log` before we patch it.
import logging

import scrapy.utils.log

from apify.log import ActorLogFormatter
import scrapy.utils.log

handler = logging.StreamHandler()
handler.setFormatter(ActorLogFormatter())
Expand Down Expand Up @@ -47,8 +45,8 @@ def new_configure_logging(*args, **kwargs):
import os

import nest_asyncio
from scrapy.utils.reactor import install_reactor

from scrapy.utils.reactor import install_reactor
from .main import main

# This is necessary so that twisted and asyncio work well together
Expand Down

0 comments on commit 4f3bdba

Please sign in to comment.