Changeset 1784 for box/chris/general/lib/server/ServerStream.h
- Timestamp:
- 01/08/2007 00:18:50 (5 years ago)
- File:
-
- 1 edited
-
box/chris/general/lib/server/ServerStream.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/general/lib/server/ServerStream.h
r1603 r1784 15 15 16 16 #ifndef WIN32 17 #include <syslog.h>18 17 #include <sys/wait.h> 19 18 #endif … … 74 73 if(childExit) 75 74 { 76 ::syslog(LOG_ERR, "in server child, exception %s (%d/%d) -- terminating child", e.what(), e.GetType(), e.GetSubType()); 75 BOX_ERROR("Error in child process, " 76 "terminating connection: exception " << 77 e.what() << "(" << e.GetType() << 78 "/" << e.GetSubType() << ")"); 77 79 _exit(1); 78 80 } … … 83 85 if(childExit) 84 86 { 85 ::syslog(LOG_ERR, "in server child, exception %s -- terminating child", e.what()); 87 BOX_ERROR("Error in child process, " 88 "terminating connection: exception " << 89 e.what()); 86 90 _exit(1); 87 91 } … … 92 96 if(childExit) 93 97 { 94 ::syslog(LOG_ERR, "in server child, unknown exception -- terminating child"); 98 BOX_ERROR("Error in child process, " 99 "terminating connection: " 100 "unknown exception"); 95 101 _exit(1); 96 102 } … … 267 273 268 274 // Log it 269 ::syslog(LOG_INFO, "%s (handling in child %d)", logMessage.c_str(), pid);275 BOX_WARNING("Error message from child process " << pid << ": " << logMessage); 270 276 } 271 277 else
Note: See TracChangeset
for help on using the changeset viewer.
