[mapguide-commits] r4732 - sandbox/adsk/2.2gp/Common/CoordinateSystem

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Apr 1 15:49:06 EDT 2010


Author: brucedechant
Date: 2010-04-01 15:49:06 -0400 (Thu, 01 Apr 2010)
New Revision: 4732

Modified:
   sandbox/adsk/2.2gp/Common/CoordinateSystem/CoordSysCatalog.cpp
Log:
Change debug statement to only appear in a DEBUG build due to the message appearing in the Apache log for RELEASE builds.


Modified: sandbox/adsk/2.2gp/Common/CoordinateSystem/CoordSysCatalog.cpp
===================================================================
--- sandbox/adsk/2.2gp/Common/CoordinateSystem/CoordSysCatalog.cpp	2010-04-01 05:05:29 UTC (rev 4731)
+++ sandbox/adsk/2.2gp/Common/CoordinateSystem/CoordSysCatalog.cpp	2010-04-01 19:49:06 UTC (rev 4732)
@@ -192,7 +192,10 @@
     //if not set then try the default location
     if(!szPathVar)
     {
+        #ifdef _DEBUG
+        // This debug statement appears in the Apache log even under release builds. Wrapping this in an #ifdef will ensure it doesn't appear in RELEASE builds
         ACE_DEBUG((LM_DEBUG, ACE_TEXT("\n(%t) CCoordinateSystemCatalog::GetDefaultDictionaryDir() - environment variable MENTOR_DICTIONARY_PATH not set.\n")));
+        #endif
 
         TCHAR szPath[MAX_PATH];
         if(SHGetSpecialFolderPath(NULL, szPath, CSIDL_COMMON_APPDATA, FALSE))



More information about the mapguide-commits mailing list