fix: ensure logger is properly initialized in crawling strategies#1387
fix: ensure logger is properly initialized in crawling strategies#1387takeaship wants to merge 1 commit intounclecode:mainfrom
Conversation
WalkthroughThe logger initialization in both Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes found. Poem
Note 🔌 MCP (Model Context Protocol) integration is now available in Early Access!Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
5743995 to
6bf6467
Compare
|
@takeaship Thank you for your contribution. We will incorporate your approach 💜 |
|
Fixed in this PR: #1436 |
Summary
This PR fixes an issue where logger objects are incorrectly serialized/deserialized in Docker environments, causing them to become dictionaries instead of proper
logging.Loggerinstances.Fixes #1357
List of files changed and why
crawl4ai/deep_crawling/bfs_strategy.py- Fixed logger initialization to ensure it remains a proper Logger instance even after serialization/deserializationcrawl4ai/deep_crawling/bff_strategy.py- Fixed logger initialization to ensure it remains a proper Logger instance even after serialization/deserializationHow Has This Been Tested?
The fix has been tested by:
Checklist:
Summary by CodeRabbit