[open-ils-commits] r7963 - trunk/Open-ILS/src/reporter
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 1 19:03:43 EDT 2007
Author: dbs
Date: 2007-11-01 18:48:48 -0400 (Thu, 01 Nov 2007)
New Revision: 7963
Modified:
trunk/Open-ILS/src/reporter/clark-kent.pl
Log:
Warn that <database><name> is deprecated for the reporter section in opensrf.xml
Modified: trunk/Open-ILS/src/reporter/clark-kent.pl
===================================================================
--- trunk/Open-ILS/src/reporter/clark-kent.pl 2007-11-01 20:25:56 UTC (rev 7962)
+++ trunk/Open-ILS/src/reporter/clark-kent.pl 2007-11-01 22:48:48 UTC (rev 7963)
@@ -52,6 +52,10 @@
my $db_host = $sc->config_value( reporter => setup => database => 'host' );
my $db_port = $sc->config_value( reporter => setup => database => 'port' );
my $db_name = $sc->config_value( reporter => setup => database => 'db' );
+if (!$db_name) {
+ $db_name = $sc->config_value( reporter => setup => database => 'name' );
+ print STDERR "WARN: <database><name> is a deprecated setting for database name. For future compatibility, you should use <database><db> instead." if $db_name;
+}
my $db_user = $sc->config_value( reporter => setup => database => 'user' );
my $db_pw = $sc->config_value( reporter => setup => database => 'password' );
More information about the open-ils-commits
mailing list