Ignore:
Timestamp:
01/08/2007 00:18:50 (5 years ago)
Author:
chris
Message:

Replace almost all calls to syslog() with logging framework. (merges [1783])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/general/lib/server/LocalProcessStream.cpp

    r1039 r1784  
    121121        if(!CreatePipe(&readFromChild, &writeInChild, &secAttr, 0)) 
    122122        { 
    123                 ::syslog(LOG_ERR, "Failed to CreatePipe for child process: " 
    124                         "error %d", GetLastError()); 
     123                BOX_ERROR("Failed to CreatePipe for child process: " 
     124                        GetErrorMessage(GetLastError())); 
    125125                THROW_EXCEPTION(ServerException, SocketPairFailed) 
    126126        } 
     
    156156        if(!result) 
    157157        { 
    158                 ::syslog(LOG_ERR, "Failed to CreateProcess: '%s': " 
    159                         "error %d", CommandLine, GetLastError()); 
     158                BOX_ERROR("Failed to CreateProcess: '" << CommandLine << 
     159                        "': " << GetErrorMessage(GetLastError())); 
    160160                CloseHandle(writeInChild); 
    161161                CloseHandle(readFromChild); 
Note: See TracChangeset for help on using the changeset viewer.