Add Debug for sql used to load local monitors

pull/1252/head
Isaac Connor 2016-01-26 20:59:07 -05:00
parent 3a0b28f168
commit 902065a6c1
1 changed files with 1 additions and 1 deletions

View File

@ -2055,9 +2055,9 @@ int Monitor::LoadLocalMonitors( const char *device, Monitor **&monitors, Purpose
sql += "'";
}
if ( staticConfig.SERVER_ID ) {
Debug( 1, "Server ID %d", staticConfig.SERVER_ID );
sql += stringtf( " AND ServerId=%d", staticConfig.SERVER_ID );
}
Debug( 1, "Loading Local Monitors with %s", sql.c_str() );
MYSQL_RES *result = zmDbFetch( sql.c_str() );
if ( !result ) {