Changeset 11271

Show
Ignore:
Timestamp:
03/22/10 13:50:27 (4 years ago)
Author:
robert
Message:

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."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osg/Notify.cpp

    r11057 r11271  
    220220void osg::StandardNotifyHandler::notify(osg::NotifySeverity severity, const char *message) 
    221221{ 
    222 #if 0 
     222#if 1 
    223223    if (severity <= osg::WARN)  
    224224        fputs(message, stderr);