0025266: Debug statements in the source are getting flushed on to the console
[occt.git] / src / Message / Message_PrinterOStream.cxx
index ac8b6b4..a91c334 100644 (file)
@@ -73,7 +73,9 @@ Message_PrinterOStream::Message_PrinterOStream (const Standard_CString theFileNa
   {
     delete aFile;
     myStream = &std::cout;
+#ifdef MESSAGE_DEB
     std::cerr << "Error opening " << theFileName << std::endl << std::flush;
+#endif
   }
 }