Author:   Lars Michelsen <[email protected]>
Date:     Tue Feb 21 18:21:41 2012 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Tue Feb 21 18:21:41 2012 +0100

NDO Backend: Removed query debug outputs

---

 ChangeLog                                        |    1 +
 share/server/core/classes/GlobalBackendndomy.php |    7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 06ba7df..0c59249 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@ Core
     in the [defaults] section of the main configuration
   * The audit.log is disabled by default now (can be enabled using the
     audit_log parameter in [global] section)
+  * NDO Backend: Removed query debug outputs
 
 Frontend
   * Weathermap line color definitions support usage values above 100% and 
below 0%
diff --git a/share/server/core/classes/GlobalBackendndomy.php 
b/share/server/core/classes/GlobalBackendndomy.php
index c965aa3..8fe1f96 100644
--- a/share/server/core/classes/GlobalBackendndomy.php
+++ b/share/server/core/classes/GlobalBackendndomy.php
@@ -258,9 +258,10 @@ class GlobalBackendndomy implements GlobalBackendInterface 
{
      * @author Lars Michelsen <[email protected]>
      */
     private function mysqlQuery($query) {
-        $fh = fopen('/tmp/ndomy', 'a');
-        fwrite($fh, $query."\n\n");
-        fclose($fh);
+        // Can be used for debugging queries
+        //$fh = fopen('/tmp/ndomy', 'a');
+        //fwrite($fh, $query."\n\n");
+        //fclose($fh);
         $QUERYHANDLE = mysql_query($query, $this->CONN) or die(mysql_error());
         return $QUERYHANDLE;
     }


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to