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 cbdd2c4e785cc9ba40d94942f8cbb8f87f863e46..e56cb5599f26cb0f33e6dff8c00e5a0df7fe0907 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2020  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -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";
@@ -182,11 +181,10 @@ namespace
 #endif
                          }
                  }
-                 return xmlPaths;
          }
+         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;
   }
 }