Changeset 2809 for box/trunk/lib


Ignore:
Timestamp:
17/11/2010 13:58:13 (18 months ago)
Author:
chris
Message:

Avoid fatal error caused by recursive logging if we fail to open the
file we're supposed to log to.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/Logging.cpp

    r2604 r2809  
    447447        int line, std::string& rMessage) 
    448448{ 
     449        if (mLogFile.StreamClosed()) 
     450        { 
     451                /* skip this logger to allow logging failure to open 
     452                the log file, without causing an infinite loop */ 
     453                return true; 
     454        } 
     455 
    449456        if (Level > GetLevel()) 
    450457        { 
Note: See TracChangeset for help on using the changeset viewer.