[Mpuls-commits] r5954 - base/trunk/mpulsweb/lib
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon Apr 30 15:01:26 CEST 2012
Author: ludwig
Date: 2012-04-30 15:01:26 +0200 (Mon, 30 Apr 2012)
New Revision: 5954
Modified:
base/trunk/mpulsweb/lib/security.py
Log:
Issue 3066: add a debug log if a mapping is done in getDbName().
Modified: base/trunk/mpulsweb/lib/security.py
===================================================================
--- base/trunk/mpulsweb/lib/security.py 2012-04-27 12:29:54 UTC (rev 5953)
+++ base/trunk/mpulsweb/lib/security.py 2012-04-30 13:01:26 UTC (rev 5954)
@@ -262,7 +262,9 @@
dbname = get_unmapped_db_name()
mapped_parameters = g.mpuls_dbmapping.get_mapping().get(dbname)
if mapped_parameters is not None:
+ unmapped_dbname = dbname
dbname = mapped_parameters.get("dbagency", dbname)
+ log.debug("Mapping DB name '%s' on '%s'" % (unmapped_dbname, dbname))
return dbname
More information about the Mpuls-commits
mailing list