Changeset 1784 for box/chris/general/bin/bbackupd/BackupClientContext.cpp
- Timestamp:
- 01/08/2007 00:18:50 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
box/chris/general/bin/bbackupd/BackupClientContext.cpp
r1659 r1784 10 10 #include "Box.h" 11 11 12 #ifdef HAVE_SYSLOG_H13 #include <syslog.h>14 #endif15 12 #ifdef HAVE_SIGNAL_H 16 13 #include <signal.h> 17 14 #endif 15 18 16 #ifdef HAVE_SYS_TIME_H 19 17 #include <sys/time.h> … … 128 126 129 127 // Log intention 130 ::syslog(LOG_INFO, "Opening connection to server %s...", mHostname.c_str()); 128 BOX_INFO("Opening connection to server '" << 129 mHostname << "'..."); 131 130 132 131 // Connect! … … 148 147 if (!mpExtendedLogFileHandle) 149 148 { 150 ::syslog(LOG_ERR, "Failed to open extended"151 " log file: %s",strerror(errno));149 BOX_ERROR("Failed to open extended log " 150 "file: " << strerror(errno)); 152 151 } 153 152 else … … 195 194 196 195 // Log success 197 ::syslog(LOG_INFO,"Connection made, login successful");196 BOX_INFO("Connection made, login successful"); 198 197 199 198 // Check to see if there is any space available on the server … … 203 202 mStorageLimitExceeded = true; 204 203 // Log 205 ::syslog(LOG_WARNING, "Exceeded storage hard-limit on server -- not uploading changes to files"); 204 BOX_WARNING("Exceeded storage hard-limit on server, " 205 "not uploading changes to files"); 206 206 } 207 207 }
Note: See TracChangeset
for help on using the changeset viewer.
