fix: Reactor info logged twice (#6657)

* fix: Reactor info logged twice

* Change condition syntax

* Simplify logic

* Format
This commit is contained in:
Laerte Pereira 2025-02-06 07:47:39 -03:00 committed by GitHub
parent 02ad6bd1f6
commit 4e0a3087e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -120,12 +120,12 @@ class Crawler:
install_reactor(reactor_class, event_loop)
else:
from twisted.internet import reactor # noqa: F401
log_reactor_info()
if reactor_class:
verify_installed_reactor(reactor_class)
if is_asyncio_reactor_installed() and event_loop:
verify_installed_asyncio_event_loop(event_loop)
if self._init_reactor or reactor_class:
log_reactor_info()
self.extensions = ExtensionManager.from_crawler(self)