Changeset 1784 for box/chris/general/bin/bbstored/BBStoreDHousekeeping.cpp
- Timestamp:
- 01/08/2007 00:18:50 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
box/chris/general/bin/bbstored/BBStoreDHousekeeping.cpp
r1382 r1784 11 11 12 12 #include <stdio.h> 13 14 #ifdef HAVE_SYSLOG_H15 #include <syslog.h>16 #endif17 13 18 14 #include "BackupStoreDaemon.h" … … 83 79 // Store the time 84 80 mLastHousekeepingRun = timeNow; 85 ::syslog(LOG_INFO,"Starting housekeeping");81 BOX_INFO("Starting housekeeping"); 86 82 87 83 // Get the list of accounts … … 113 109 catch(BoxException &e) 114 110 { 115 ::syslog(LOG_ERR, "while housekeeping account %08X, exception %s (%d/%d) -- aborting housekeeping run for this account", 116 *i, e.what(), e.GetType(), e.GetSubType()); 111 BOX_ERROR("Housekeeping on account " << 112 BOX_FORMAT_ACCOUNT(*i) << " threw exception, " 113 "aborting run for this account: " << 114 e.what() << " (" << 115 e.GetType() << "/" << e.GetSubType() << ")"); 117 116 } 118 117 catch(std::exception &e) 119 118 { 120 ::syslog(LOG_ERR, "while housekeeping account %08X, exception %s -- aborting housekeeping run for this account", 121 *i, e.what()); 119 BOX_ERROR("Housekeeping on account " << 120 BOX_FORMAT_ACCOUNT(*i) << " threw exception, " 121 "aborting run for this account: " << 122 e.what()); 122 123 } 123 124 catch(...) 124 125 { 125 ::syslog(LOG_ERR, "while housekeeping account %08X, unknown exception -- aborting housekeeping run for this account", 126 *i); 126 BOX_ERROR("Housekeeping on account " << 127 BOX_FORMAT_ACCOUNT(*i) << " threw exception, " 128 "aborting run for this account: " 129 "unknown exception"); 127 130 } 128 131 … … 145 148 } 146 149 147 ::syslog(LOG_INFO,"Finished housekeeping");150 BOX_INFO("Finished housekeeping"); 148 151 149 152 // Placed here for accuracy, if StopRun() is true, for example. … … 191 194 if(mInterProcessComms.GetLine(line, false /* no pre-processing */, MaximumWaitTime)) 192 195 { 193 TRACE1(" housekeeping received command '%s' over interprocess comms\n", line.c_str());196 TRACE1("Housekeeping received command '%s' over interprocess comms\n", line.c_str()); 194 197 195 198 int account = 0; … … 213 216 { 214 217 // Yes! -- need to stop now so when it retries to get the lock, it will succeed 215 ::syslog(LOG_INFO, "Housekeeping giving way to connection for account 0x%08x", AccountNum); 218 BOX_INFO("Housekeeping on account " << 219 BOX_FORMAT_ACCOUNT(AccountNum) << 220 "giving way to client connection"); 216 221 return true; 217 222 }
Note: See TracChangeset
for help on using the changeset viewer.
