mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-21 22:28:11 +02:00
debug: Add detailed logging and HTML dump for Amazon scraping
- Add debug logs for each step of product extraction - Log ASIN, title, link extraction failures - Save HTML to /tmp/amazon_debug_*.html for inspection - Enable DEBUG logging level temporarily - Will help identify why 48 cards found but 0 products extracted
This commit is contained in:
2 files changed
+15
-1
No files matched your search
+1
-1
@@ -20,7 +20,7 @@ from app.services.scheduler import start_scheduler as start_catalog_scheduler, s
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(
|
||||
level=os.getenv("LOG_LEVEL", "INFO").upper(),
|
||||
level=os.getenv("LOG_LEVEL", "DEBUG").upper(), # Temporarily DEBUG for Amazon debugging
|
||||
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
||||
)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
Reference in new issue
Block a user