[icinga-checkins] icinga.org: icinga-web/master: * Logging only if connection is NOT icinga ( fixes #2226)

git at icinga.org git at icinga.org
Mon Jan 30 13:56:22 CET 2012


Module: icinga-web
Branch: master
Commit: 29d9887adb3b442b2f777a05c1a5a5dc053c6fb6
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=29d9887adb3b442b2f777a05c1a5a5dc053c6fb6

Author: Marius Hein <marius.hein at netways.de>
Date:   Mon Jan 30 13:56:04 2012 +0100

* Logging only if connection is NOT icinga (fixes #2226)

---

 .../lib/database/IcingaDoctrine_Query.class.php    |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/app/modules/Api/lib/database/IcingaDoctrine_Query.class.php b/app/modules/Api/lib/database/IcingaDoctrine_Query.class.php
index ee4da77..7c4b680 100644
--- a/app/modules/Api/lib/database/IcingaDoctrine_Query.class.php
+++ b/app/modules/Api/lib/database/IcingaDoctrine_Query.class.php
@@ -17,9 +17,11 @@ class IcingaDoctrine_Query extends Doctrine_Query {
         }
         
         $conn_name = $manager->getConnectionName($conn);
-        
-        AgaviContext::getInstance()->getLoggerManager()->log('QUERY::CREATE Obtain doctrine connection: '. $conn_name, AgaviLogger::DEBUG);
-        
+	
+	if ($conn_name !== IcingaDoctrineDatabase::CONNECTION_ICINGA) {        
+            AgaviContext::getInstance()->getLoggerManager()->log('QUERY::CREATE Obtain doctrine connection: '. $conn_name, AgaviLogger::DEBUG);
+        }
+
         return parent::create($conn, 'IcingaDoctrine_Query');
     }
     





More information about the icinga-checkins mailing list