From 5925c892327e89f71f86eae7fb6cd1535eb62e6f Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 27 Apr 2011 18:38:17 +0200 Subject: [PATCH] feature #575: Add error messages from IM to Host Template --- src/im/InformationManagerDriver.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/im/InformationManagerDriver.cc b/src/im/InformationManagerDriver.cc index 2079ffdbb1..be96bd703b 100644 --- a/src/im/InformationManagerDriver.cc +++ b/src/im/InformationManagerDriver.cc @@ -143,15 +143,16 @@ void InformationManagerDriver::protocol( error_driver_info: ess << "Error monitoring host " << id << " : " << is.str(); - NebulaLog::log("InM", Log::ERROR, ess); - goto error_common_info; error_parse_info: ess << "Error parsing host information: " << hinfo; - NebulaLog::log("InM",Log::ERROR,ess); + goto error_common_info; error_common_info: + NebulaLog::log("InM",Log::ERROR,ess); + + host->set_template_error_message(ess.str()); host->touch(false);