Author:   Lars Michelsen <[email protected]>
Date:     Wed Oct  9 09:16:16 2013 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Wed Oct  9 09:16:16 2013 +0200

Fixed debug log entries when debug logging is disabled

---

 share/server/core/functions/debug.php |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/share/server/core/functions/debug.php 
b/share/server/core/functions/debug.php
index de0bf6d..6ff3fcf 100644
--- a/share/server/core/functions/debug.php
+++ b/share/server/core/functions/debug.php
@@ -54,7 +54,8 @@ function debugFinalize() {
 }
 
 function log_mem($txt = 'somewhere') {
-    debug('mem ['.$txt.']: ' . round(memory_get_usage()/1024/1024, 2) . 'Mb');
+    if (DEBUG && DEBUGLEVEL & 2)
+        debug('mem ['.$txt.']: ' . round(memory_get_usage()/1024/1024, 2) . 
'Mb');
 }
 
 /**


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to