[Astpp-commit] SF.net SVN: astpp:[2259] trunk/freeswitch/contrib/wasim/cdrload.pl
Brought to you by:
darrenkw
From: <dar...@us...> - 2009-09-23 04:31:40
|
Revision: 2259 http://astpp.svn.sourceforge.net/astpp/?rev=2259&view=rev Author: darrenkw Date: 2009-09-23 04:31:30 +0000 (Wed, 23 Sep 2009) Log Message: ----------- Corrected the usage of ASTPP->debug object. Modified Paths: -------------- trunk/freeswitch/contrib/wasim/cdrload.pl Modified: trunk/freeswitch/contrib/wasim/cdrload.pl =================================================================== --- trunk/freeswitch/contrib/wasim/cdrload.pl 2009-09-23 04:29:52 UTC (rev 2258) +++ trunk/freeswitch/contrib/wasim/cdrload.pl 2009-09-23 04:31:30 UTC (rev 2259) @@ -35,9 +35,9 @@ my @LS = `ls -1t /usr/local/freeswitch/log/cdr-csv/Master.csv.*`; foreach my $line (@LS) { chop($line); - $ASTPP->debug($line); + $ASTPP->debug( debug => $line); my $stm = "load data local infile '$line' into table $config->{freeswitch_cdr_table} fields enclosed by '\"' terminated by ','"; - print STDERR $stm if $config->{debug} == 1; + $ASTPP->debug( debug => $stm); my $ul = $cdr_db->prepare($stm) or die "$0: Couldn't prepare statement $stm: " . $cdr_db->errstr;; $ul->execute(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |