merge simple debug output changes from storageareas
parent
a0b0f0aa79
commit
65b4a7ccdb
|
@ -129,7 +129,7 @@ BEGIN {
|
|||
} # end BEGIN
|
||||
|
||||
sub loadConfigFromDB {
|
||||
print( "Loading config from DB\n" );
|
||||
print( "Loading config from DB" );
|
||||
my $dbh = ZoneMinder::Database::zmDbConnect();
|
||||
if ( !$dbh ) {
|
||||
print( "Error: unable to load options from database: $DBI::errstr\n" );
|
||||
|
@ -160,11 +160,12 @@ sub loadConfigFromDB {
|
|||
$option_count++;;
|
||||
}
|
||||
$sth->finish();
|
||||
print( " $option_count entries\n" );
|
||||
return( $option_count );
|
||||
} # end sub loadConfigFromDB
|
||||
|
||||
sub saveConfigToDB {
|
||||
print( "Saving config to DB\n" );
|
||||
print( "Saving config to DB " . @options . " entries\n" );
|
||||
my $dbh = ZoneMinder::Database::zmDbConnect();
|
||||
if ( !$dbh ) {
|
||||
print( "Error: unable to save options to database: $DBI::errstr\n" );
|
||||
|
|
Loading…
Reference in New Issue