Salome HOME
[bos #32517][EDF] Dynamic log messages switched on and off by SALOME_VERBOSE environm...
[modules/geom.git] / src / GEOMUtils / GEOMUtils_XmlHandler.cxx
index 8adaf196e920fa11d3df9b9047a718c42dfb6d96..e56cb5599f26cb0f33e6dff8c00e5a0df7fe0907 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "GEOMUtils_XmlHandler.hxx"
 #include <Basics_Utils.hxx>
+#include "utilities.h"
 
 #include <libxml/parser.h>
 #include <algorithm>
@@ -30,8 +31,6 @@
 #include <unistd.h>
 #endif
 
-//#define MYDEBUG
-
 namespace
 {
   const char*    env_var     = "GEOM_PluginsList";
@@ -186,7 +185,6 @@ namespace
          return xmlPaths;
   }
 
-#ifdef MYDEBUG
   void dumpinfo(const GEOMUtils::PluginInfo& info)
   {
     printf("DUMPING PLUGIN INFO\n");
@@ -210,7 +208,6 @@ namespace
       printf("-----\n");
     }
   }
-#endif
 }
 
 namespace GEOMUtils
@@ -284,9 +281,10 @@ namespace GEOMUtils
        //xmlCleanupParser();//vsr: xmlCleanupParser should not be called from the application
       } // end xml doc
     }
-#ifdef MYDEBUG
-    dumpinfo(info);
-#endif
+
+       if (SALOME::VerbosityActivated())
+       dumpinfo(info);
+
     return info;
   }
 }