mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-16 17:53:08 +09:00
do not throw exceptions in log to speedup things
git-svn-id: http://svn.opennebula.org/trunk@74 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
1 parent
20ac09e4a7
commit
2d62d1cf95
1 file changed
+2
-2
+2
-2
@@ -81,7 +81,7 @@ void Log::log(
|
||||
|
||||
if (file.fail() == true)
|
||||
{
|
||||
throw runtime_error("Could not open log file");
|
||||
return;
|
||||
}
|
||||
|
||||
the_time = time(NULL);
|
||||
@@ -124,7 +124,7 @@ void Log::log(
|
||||
|
||||
if (file.fail() == true)
|
||||
{
|
||||
throw runtime_error("Could not open log file");
|
||||
return;
|
||||
}
|
||||
|
||||
the_time = time(NULL);
|
||||
|
||||
Reference in new issue
Block a user