From Farshid Lashkari, "I noticed that osg::notify does not output to stderr when using either FATAL or WARN severity levels. There is code in osg::StandardNotifyHandler::notify that will use stderr based on the severity level, but it is disabled by an #if 0. I'm assuming this was a mistake and have re-enabled the code.

Many IDEs will capture the output of processes and highlight stderr messages in red. After upgrading from OSG 1.2, I was noticing that none of the error messages were being highlighted, which I find quite useful."
This commit is contained in:
Robert Osfield
2010-03-22 12:50:27 +00:00
parent 7e6ddb8588
commit 8b66d5348e

View File

@@ -219,7 +219,7 @@ std::ostream& osg::notify(const osg::NotifySeverity severity)
void osg::StandardNotifyHandler::notify(osg::NotifySeverity severity, const char *message)
{
#if 0
#if 1
if (severity <= osg::WARN)
fputs(message, stderr);
else