[mapserver-commits] r11537 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Apr 12 06:20:19 EDT 2011


Author: tbonfort
Date: 2011-04-12 03:20:19 -0700 (Tue, 12 Apr 2011)
New Revision: 11537

Modified:
   trunk/mapserver/mapraster.c
Log:
don't print debug message if layer->debug is not set


Modified: trunk/mapserver/mapraster.c
===================================================================
--- trunk/mapserver/mapraster.c	2011-04-12 08:12:53 UTC (rev 11536)
+++ trunk/mapserver/mapraster.c	2011-04-12 10:20:19 UTC (rev 11537)
@@ -523,8 +523,10 @@
     }
 
     if(strlen(filename) == 0) continue;
-    msDebug( "msDrawRasterLayerLow(%s): Filename is: %s\n", layer->name, filename);
 
+    if(layer->debug == MS_TRUE) 
+      msDebug( "msDrawRasterLayerLow(%s): Filename is: %s\n", layer->name, filename);
+
     /*
     ** If using a tileindex then build the path relative to that file if SHAPEPATH is not set.
     */
@@ -536,7 +538,8 @@
     } else {
       msTryBuildPath3(szPath, map->mappath, map->shapepath, filename);
     }
-    msDebug("msDrawRasterLayerLow(%s): Path is: %s\n", layer->name, szPath);
+    if(layer->debug == MS_TRUE) 
+      msDebug("msDrawRasterLayerLow(%s): Path is: %s\n", layer->name, szPath);
 
     /* 
     ** Note: because we do decryption after the above path expansion 



More information about the mapserver-commits mailing list