X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHUtils%2FSMESH_TryCatch.cxx;h=49bfe9c53fe393346dde50962274173f4d47bf82;hb=bba2ceaf86d0a48fb0b256801edeb2418b0f93ce;hp=48ebcdee27f3e443318b666c0a66183278951770;hpb=88ff35ddd4a4442397bc5f6ba893aaf9c51b1856;p=modules%2Fsmesh.git diff --git a/src/SMESHUtils/SMESH_TryCatch.cxx b/src/SMESHUtils/SMESH_TryCatch.cxx index 48ebcdee2..49bfe9c53 100644 --- a/src/SMESHUtils/SMESH_TryCatch.cxx +++ b/src/SMESHUtils/SMESH_TryCatch.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -41,11 +41,8 @@ const char* SMESH::returnError(const char* txt) void SMESH::printErrorInDebugMode(const char* txt) { -#ifdef _DEBUG_ - std::cerr << txt << " " << __FILE__ << ": " << __LINE__ << std::endl; -#else - (void)txt; // unused in release mode -#endif + if (SALOME::VerbosityActivated()) + std::cerr << txt << " " << __FILE__ << ": " << __LINE__ << std::endl; } // ------------------------------------------------------------------