Add Info line on startup saying which Server it is loading for

pull/1207/head
Isaac Connor 2015-10-02 12:33:09 +00:00
parent b0b69c5176
commit aa108eff6e
1 changed files with 1 additions and 0 deletions

View File

@ -226,6 +226,7 @@ if ( $command =~ /^(?:start|restart)$/ )
zmMemTidy();
runCommand( "zmdc.pl startup" );
Info( "Starting up services for server $Config{ZM_SERVER_ID}\n" );
my $sql = $Config{ZM_SERVER_ID} ? 'SELECT * FROM Monitors WHERE ServerId=?' : 'SELECT * FROM Monitors';
my $sth = $dbh->prepare_cached( $sql )
or Fatal( "Can't prepare '$sql': ".$dbh->errstr() );