From 2d62d1cf95260e6e5e599eb43a8a3e2e4bc5bf23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20S=2E=20Montero?= Date: Tue, 22 Jul 2008 17:55:47 +0000 Subject: [PATCH] do not throw exceptions in log to speedup things git-svn-id: http://svn.opennebula.org/trunk@74 3034c82b-c49b-4eb3-8279-a7acafdc01c0 --- src/nebula/Log.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nebula/Log.cc b/src/nebula/Log.cc index 877e299a77..14e68b3427 100644 --- a/src/nebula/Log.cc +++ b/src/nebula/Log.cc @@ -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);