1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

Minor log fix and style

This commit is contained in:
Carlos Martin 2010-04-21 15:04:22 +02:00 committed by Ruben S. Montero
parent 21b729dbdd
commit ba790e2337
2 changed files with 13 additions and 19 deletions

View File

@ -100,8 +100,6 @@ public:
rc = mysql_query(db, c_str);
if (rc != 0)
{
if (log != 0)
{
ostringstream oss;
const char * err_msg = mysql_error(db);
@ -111,7 +109,6 @@ public:
oss << ", error " << err_num << " : " << err_msg;
NebulaLog::log("ONE",Log::ERROR,oss);
}
return -1;
}
@ -129,8 +126,6 @@ public:
result = mysql_store_result(db);
if (result == NULL)
{
if (log != 0)
{
ostringstream oss;
const char * err_msg = mysql_error(db);
@ -140,7 +135,6 @@ public:
oss << ", error " << err_num << " : " << err_msg;
NebulaLog::log("ONE",Log::ERROR,oss);
}
return -1;
}