mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-22 06:33:12 +00:00
improved last change to left definitively there
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40149
This commit is contained in:
parent
6b890c1b28
commit
3f7100fe1e
@ -21,5 +21,11 @@ def mysql_connect(db_uri, **kwargs):
|
||||
|
||||
d.update(settings.get("MYSQL_CONNECTION_SETTINGS"))
|
||||
d.update(kwargs)
|
||||
log.msg("Connecting db with settings %s" % d )
|
||||
|
||||
dcopy = d.copy()
|
||||
print dcopy
|
||||
if dcopy.get("passwd"):
|
||||
dcopy["passwd"] = "********"
|
||||
log.msg("Connecting db with settings %s" % dcopy )
|
||||
|
||||
return MySQLdb.connect(**d)
|
||||
|
Loading…
x
Reference in New Issue
Block a user