Unexpected behavior with Statistics logging
I wanted to turn off the periodic Statistics logging; my crawls are relatively short, and I'm only interested in the final statistics.
I could set the log_interval to something really long.
I thought that if I set periodic_message_logger to None it would prevent logging, but actually that doesn't work.
The codes tests for it being None and falls back to the default logger in Crawlee.
Solution:Jump to solution
This expected behavior of
periodic_message_logger
expects either some external logger, or if None, the default value is used.
You can achieve your goal by doing the following
```python...3 Replies
@liamk-ultra just advanced to level 1! Thanks for your contributions! 🎉
Solution
This expected behavior of
periodic_message_logger
expects either some external logger, or if None, the default value is used.
You can achieve your goal by doing the following
Okay, I'll do that. Thanks.