CA
Crawlee & Apify•2y ago
ratty-blush

Everything logged twice?

Any idea why everything is logged twice? Is this a known issue of the Scrapy template, or is it a desired behavior?
...
[scrapy.core.engine] INFO Spider closed (finished) ({"spider": "<Spider 'startupjobs' at 0x1072ab890>"})
[scrapy.core.engine] INFO Spider closed (finished) ({"spider": "<Spider 'startupjobs' at 0x1072ab890>", "message": "Spider closed (finished)"})
[twisted] INFO (TCP Port 6023 Closed)
[twisted] INFO (TCP Port 6023 Closed) ({"message": "(TCP Port 6023 Closed)"})
[apify] INFO Exiting actor ({"exit_code": 0})
[apify] INFO Exiting actor ({"exit_code": 0, "message": "Exiting actor"})
...
[scrapy.core.engine] INFO Spider closed (finished) ({"spider": "<Spider 'startupjobs' at 0x1072ab890>"})
[scrapy.core.engine] INFO Spider closed (finished) ({"spider": "<Spider 'startupjobs' at 0x1072ab890>", "message": "Spider closed (finished)"})
[twisted] INFO (TCP Port 6023 Closed)
[twisted] INFO (TCP Port 6023 Closed) ({"message": "(TCP Port 6023 Closed)"})
[apify] INFO Exiting actor ({"exit_code": 0})
[apify] INFO Exiting actor ({"exit_code": 0, "message": "Exiting actor"})
7 Replies
ratty-blush
ratty-blushOP•2y ago
Should I put it here or as issue on the template repo? 🤔
rising-crimson
rising-crimson•2y ago
Hi Honza, could you please open an issue for that in https://github.com/apify/actor-templates/issues ? I have noticed this behavior before, however, so far not been able to get to it.
rising-crimson
rising-crimson•2y ago
I opened an issue for that - https://github.com/apify/actor-templates/issues/256, thanks for reporting it.
GitHub
Issues · apify/actor-templates
This project is the :house: home of Apify actor template projects to help users quickly get started. - Issues · apify/actor-templates
MEE6
MEE6•2y ago
@Vlada Dusek just advanced to level 2! Thanks for your contributions! 🎉
ratty-blush
ratty-blushOP•2y ago
Thanks! I’ll subscribe there. If I happen to figure it out, I’ll report under that issue. Oh, I see it’s fixed 😀 That was quick! 🔥 Awesome 💪
rising-crimson
rising-crimson•2y ago
Yeah, I made one more update, hopefully, now the logging will be without any problems in all of the parts of the Actor 🙂
ratty-blush
ratty-blushOP•2y ago
I implemented the patch today, but didnt have time to test it. I’ll just trust you 😀 If I see double logs again when I’m back at the repo, I’ll report back.

Did you find this page helpful?