[mapserver-commits] r9170 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Jul 13 13:23:58 EDT 2009


Author: warmerdam
Date: 2009-07-13 13:23:57 -0400 (Mon, 13 Jul 2009)
New Revision: 9170

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapserv.c
Log:
added MS_DEBUGLEVEL and MS_ERRORFILE commandline args for mapserv

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2009-07-12 16:57:27 UTC (rev 9169)
+++ trunk/mapserver/HISTORY.TXT	2009-07-13 17:23:57 UTC (rev 9170)
@@ -14,6 +14,8 @@
 Current Version (SVN trunk):
 ----------------------------
 
+- Add MS_DEBUGLEVEL and MS_ERRORFILE commandline switches for mapserv.c. 
+
 - Exposed msMapOffsetExtent, msMapScaleExtent and msMapSetCenter methods in PHP/Mapscript (#2460)
 
 - Removed ZEND_DEBUG define in PHP/Mapscript (#2717)

Modified: trunk/mapserver/mapserv.c
===================================================================
--- trunk/mapserver/mapserv.c	2009-07-12 16:57:27 UTC (rev 9169)
+++ trunk/mapserver/mapserv.c	2009-07-13 17:23:57 UTC (rev 9170)
@@ -1179,6 +1179,10 @@
       /* Debugging hook... pass "QUERY_STRING=..." on the command-line */
       putenv( "REQUEST_METHOD=GET" );
       putenv( argv[iArg] );
+    } else if( strncmp(argv[iArg], "MS_ERRORFILE=", 13) == 0 ) {
+      msSetErrorFile( argv[iArg] + 13 );
+    } else if( strncmp(argv[iArg], "MS_DEBUGLEVEL=", 14) == 0) {
+      msSetGlobalDebugLevel( atoi(argv[iArg] + 14) );
     } else {
       /* we don't produce a usage message as some web servers pass junk arguments */
     }



More information about the mapserver-commits mailing list