Salome HOME
[bos #32517][EDF] Dynamic log messages switched on and off by SALOME_VERBOSE environm...
[modules/smesh.git] / src / SMESHUtils / SMESH_TryCatch.cxx
index b808a791bdcbeda74fe4b1f56a43d109c6ac0c35..49bfe9c53fe393346dde50962274173f4d47bf82 100644 (file)
@@ -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;
 }
 
 // ------------------------------------------------------------------