1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

Do not show success message when monitoring information cannot be

updated
This commit is contained in:
Ruben S. Montero 2018-05-22 18:04:53 +02:00
parent aa21f31085
commit 0c2ca58795
2 changed files with 9 additions and 7 deletions

View File

@ -555,9 +555,10 @@ int Host::update_monitoring(SqlDB * db)
return rc;
error_xml:
db->free_str(sql_xml);
error_str = "could not transform the Host to XML: ";
error_str += sql_xml;
error_str = "could not transform the Host to XML.";
db->free_str(sql_xml);
goto error_common;

View File

@ -207,12 +207,13 @@ void MonitorThread::do_message()
hpool->update(host);
hpool->update_monitoring(host);
if ( hpool->update_monitoring(host) == 0 )
{
oss << "Host " << host->get_name() << " (" << host->get_oid() << ")"
<< " successfully monitored.";
oss << "Host " << host->get_name() << " (" << host->get_oid() << ")"
<< " successfully monitored.";
NebulaLog::log("InM", Log::DEBUG, oss);
NebulaLog::log("InM", Log::DEBUG, oss);
}
host->unlock();