From 790005c155056efe43f30386457d53b456b999c0 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 19 Nov 2014 12:42:05 -0500 Subject: [PATCH] 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. --- src/zm_monitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 18d3d0db8..bdf5fe38f 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -416,12 +416,12 @@ Monitor::Monitor( { 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 ); } 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 ); } }