Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

added a log to see if db settings are really being passed

olveyra6b890c1b2875
diff --git a/scrapy/trunk/scrapy/utils/db.py b/scrapy/trunk/scrapy/utils/db.py
index 6e278f133..e36c15143 100644
--- a/scrapy/trunk/scrapy/utils/db.py
+++ b/scrapy/trunk/scrapy/utils/db.py
@@ -3,6 +3,7 @@ Function for dealing with databases
"""
import re
from scrapy.conf import settings
+from scrapy.core import log
def mysql_connect(db_uri, **kwargs):
"""
@@ -20,4 +21,5 @@ def mysql_connect(db_uri, **kwargs):
d.update(settings.get("MYSQL_CONNECTION_SETTINGS"))
d.update(kwargs)
+ log.msg("Connecting db with settings %s" % d )
return MySQLdb.connect(**d)