Salome HOME
[bos #32517][EDF] Dynamic log messages switched on and off by SALOME_VERBOSE environm...
[modules/smesh.git] / src / SMESH_I / SMESH_Homard_i.cxx
index a0e3c3613f36fb6712aef1312de47d811d521647..89383d76b0209bc12c09a16d5b7754233e42edce 100644 (file)
@@ -591,9 +591,10 @@ void HOMARD_Cas_i::AddBoundaryGroup(const char* BoundaryName, const char* Group)
     //
     SALOME::ExceptionStruct es;
     es.type = SALOME::BAD_PARAM;
-#ifdef _DEBUG_
-    texte += "\nInvalid AddBoundaryGroup";
-#endif
+    
+    if (SALOME::VerbosityActivated())
+      texte += "\nInvalid AddBoundaryGroup";
+
     INFOS(texte);
     es.text = CORBA::string_dup(texte.c_str());
     throw SALOME::SALOME_Exception(es);