From 8b66d5348ee01854a1bd639a4c75d66e288d9666 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 22 Mar 2010 12:50:27 +0000 Subject: [PATCH] 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." --- src/osg/Notify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Notify.cpp b/src/osg/Notify.cpp index 7137916cb..18d2b82a5 100644 --- a/src/osg/Notify.cpp +++ b/src/osg/Notify.cpp @@ -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