Include monitor name in log otput so we know which monitor we are talking about. This informaton is not included when the error occurs in zms.

This commit is contained in:
Isaac Connor 2014-11-19 12:42:05 -05:00
parent 4f9a2e1689
commit 790005c155
1 changed files with 2 additions and 2 deletions

View File

@ -416,12 +416,12 @@ Monitor::Monitor(
{ {
if ( purpose != QUERY ) if ( purpose != QUERY )
{ {
Error( "Shared data not initialised by capture daemon" ); Error( "Shared data not initialised by capture daemon for monitor %s", name );
exit( -1 ); exit( -1 );
} }
else else
{ {
Warning( "Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results" ); Warning( "Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results for monitor %s", name );
} }
} }