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:
parent
21b729dbdd
commit
ba790e2337
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user