From 2ea018379dfda0a89002cd14c71e97d342e09324 Mon Sep 17 00:00:00 2001 From: Konstantin LEONTEV Date: Wed, 12 Oct 2022 21:05:25 +0300 Subject: [PATCH] [bos #32517][EDF] Dynamic logging: Removed MYDEBUG. --- src/GEOM/GEOM_Engine.cxx | 62 ++++++++++++-------------- src/GEOMUtils/GEOMUtils_XmlHandler.cxx | 12 +++-- src/OBJECT/GEOM_Actor.cxx | 9 +--- 3 files changed, 36 insertions(+), 47 deletions(-) diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index 46426c6fd..14a0c516d 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -83,13 +83,6 @@ #define C_SQR_BRACKET ']' #define PY_NULL "None" -#ifdef _DEBUG_ -static int MYDEBUG = 0; -using namespace std; -#else -static int MYDEBUG = 0; -#endif - // VSR 29/08/2017: 0023327, 0023428: eliminate unnecessary lines in Python dump // Next macro, when defined, causes appearing of SubShapeAllIDs(), SubShapeAllSortedIDs(), GetSameIDs() // and other such commands in Python dump. @@ -1302,10 +1295,10 @@ Handle(TColStd_HSequenceOfInteger) FindEntries(TCollection_AsciiString& theStrin void ReplaceVariables(TCollection_AsciiString& theCommand, const TVariablesList& theVariables) { - if (MYDEBUG) + if (SALOME::VerbosityActivated()) std::cout<<"Command : "<GetCurrectState(); - if(MYDEBUG) { + if(SALOME::VerbosityActivated()) { std::cout<<"Variables from SObject:"<= aVariables.size()) continue; @@ -1495,27 +1488,30 @@ void ReplaceVariables(TCollection_AsciiString& theCommand, aReplacedParameter.InsertAfter(aReplacedParameter.Length(),"'"); } - if(MYDEBUG) - std::cout<<"aSection before : "<IncrementState(); } - if (MYDEBUG) + if (SALOME::VerbosityActivated()) std::cout<<"Command : "< +#include "utilities.h" #include #include @@ -30,8 +31,6 @@ #include #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; } } diff --git a/src/OBJECT/GEOM_Actor.cxx b/src/OBJECT/GEOM_Actor.cxx index f7ddfe78c..ed3010063 100644 --- a/src/OBJECT/GEOM_Actor.cxx +++ b/src/OBJECT/GEOM_Actor.cxx @@ -73,10 +73,6 @@ //vtkStandardNewMacro(GEOM_Actor) -#ifndef MYDEBUG -//#define MYDEBUG -#endif - GEOM_Actor::GEOM_Actor(): isOnlyVertex(false), @@ -127,9 +123,8 @@ GEOM_Actor::GEOM_Actor(): // defined in this class !!! myPolyDataMapper(GEOM_PainterPolyDataMapper::New(),true) { -#ifdef MYDEBUG - MESSAGE (this<< " GEOM_Actor::GEOM_Actor"); -#endif + + MESSAGE(this<< " GEOM_Actor::GEOM_Actor"); myPolyDataMapper->SetInputConnection(myAppendFilter->GetOutputPort()); vtkProperty* aProperty; -- 2.39.2