Changeset 1784 for box/chris/general/bin/bbstored/BackupStoreDaemon.cpp
- Timestamp:
- 01/08/2007 00:18:50 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
box/chris/general/bin/bbstored/BackupStoreDaemon.cpp
r1691 r1784 209 209 ::openlog("bbstored/hk", LOG_PID, LOG_LOCAL6); 210 210 // Log that housekeeping started 211 ::syslog(LOG_INFO,"Housekeeping process started");211 BOX_INFO("Housekeeping process started"); 212 212 // Ignore term and hup 213 213 // Parent will handle these and alert the child via the socket, don't want to randomly die … … 282 282 catch(BoxException &e) 283 283 { 284 ::syslog(LOG_ERR, "%s: disconnecting due to "285 "exception %s (%d/%d)", DaemonName(),286 e. what(), e.GetType(), e.GetSubType());284 BOX_ERROR("Error in child process, terminating connection: " << 285 e.what() << " (" << e.GetType() << "/" << 286 e.GetSubType() << ")"); 287 287 } 288 288 catch(std::exception &e) 289 289 { 290 ::syslog(LOG_ERR, "%s: disconnecting due to "291 "exception %s", DaemonName(),e.what());290 BOX_ERROR("Error in child process, terminating connection: " << 291 e.what()); 292 292 } 293 293 catch(...) 294 294 { 295 ::syslog(LOG_ERR, "%s: disconnecting due to "296 "unknown exception" , DaemonName());295 BOX_ERROR("Error in child process, terminating connection: " << 296 "unknown exception"); 297 297 } 298 298 } … … 312 312 313 313 // Log the name 314 ::syslog(LOG_INFO, "Certificate CN: %s", clientCommonName.c_str());314 BOX_INFO("Client certificate CN: " << clientCommonName); 315 315 316 316 // Check it … … 358 358 { 359 359 // Log the amount of data transferred 360 ::syslog(LOG_INFO, "Connection statistics for %s: " 361 "IN=%lld OUT=%lld TOTAL=%lld", commonName, 362 (long long)s.GetBytesRead(), 363 (long long)s.GetBytesWritten(), 364 (long long)s.GetBytesRead() + 365 (long long)s.GetBytesWritten()); 366 } 360 BOX_INFO("Connection statistics for " << commonName << ":" 361 " IN=" << s.GetBytesRead() << 362 " OUT=" << s.GetBytesWritten() << 363 " TOTAL=" << (s.GetBytesRead() + s.GetBytesWritten())); 364 }
Note: See TracChangeset
for help on using the changeset viewer.
