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
This commit is contained in:
Yoav 2014-02-10 13:27:43 +00:00
parent cd586be931
commit 9c0cc58ab6

View File

@ -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