From 9c0cc58ab6407991e3f7e2191fc20ca39bd2a204 Mon Sep 17 00:00:00 2001 From: Yoav Date: Mon, 10 Feb 2014 13:27:43 +0000 Subject: [PATCH] updated logger message * the error is not specific to multi_plugin, and can happen with normal plugins * logging the line that caused this error and the plugin name --- m2g-poller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/m2g-poller.py b/m2g-poller.py index 966b68c..ebc0e48 100755 --- a/m2g-poller.py +++ b/m2g-poller.py @@ -109,7 +109,8 @@ class Munin(): key_name = multigraph_prefix + full_key_name.split(".")[0] response[multigraph][key_name] = key_value except (KeyError, AttributeError): - logging.info("plugin multi_graph %s returns invalid data for host %s\n ", multigraph, self.hostname) + logging.info("plugin %s returned invalid data [%s] for host" + " %s\n", plugin, current_line, self.hostname) return response