Changeset 1784 for box/chris/general/bin/bbackupctl/bbackupctl.cpp
- Timestamp:
- 01/08/2007 00:18:50 (5 years ago)
- File:
-
- 1 edited
-
box/chris/general/bin/bbackupctl/bbackupctl.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/general/bin/bbackupctl/bbackupctl.cpp
r1690 r1784 163 163 164 164 #if defined WIN32 && ! defined NDEBUG 165 syslog(LOG_ERR,"Failed to connect to the command socket");165 BOX_ERROR("Failed to connect to the command socket"); 166 166 #endif 167 167 … … 176 176 if(!getLine.GetLine(configSummary)) 177 177 { 178 #if defined WIN32 && ! defined NDEBUG 179 syslog(LOG_ERR, "Failed to receive configuration summary " 178 BOX_ERROR("Failed to receive configuration summary " 180 179 "from daemon"); 181 #else182 printf("Failed to receive configuration summary from daemon\n");183 #endif184 185 180 return 1; 186 181 } … … 189 184 if(getLine.IsEOF()) 190 185 { 191 #if defined WIN32 && ! defined NDEBUG 192 syslog(LOG_ERR, "Server rejected the connection. " 193 "Are you running bbackupctl as the same user " 194 "as the daemon?"); 195 #else 196 printf("Server rejected the connection. " 197 "Are you running bbackupctl as the same user " 198 "as the daemon?\n"); 199 #endif 200 186 BOX_ERROR("Server rejected the connection. Are you running " 187 "bbackupctl as the same user as the daemon?"); 201 188 return 1; 202 189 } … … 225 212 if(!getLine.GetLine(stateLine) || getLine.IsEOF()) 226 213 { 227 #if defined WIN32 && ! defined NDEBUG 228 syslog(LOG_ERR, "Failed to receive state line from daemon"); 229 #else 230 printf("Failed to receive state line from daemon\n"); 231 #endif 214 BOX_ERROR("Failed to receive state line from daemon"); 232 215 return 1; 233 216 } … … 237 220 if(::sscanf(stateLine.c_str(), "state %d", ¤tState) != 1) 238 221 { 239 printf("State line didn't decode\n");222 BOX_ERROR("Received invalid state line from daemon"); 240 223 return 1; 241 224 } … … 267 250 if(!autoBackup) 268 251 { 269 printf("ERROR: Daemon is not in automatic mode --"270 "sync will never start! \n");252 BOX_ERROR("Daemon is not in automatic mode, " 253 "sync will never start!"); 271 254 return 1; 272 255 }
Note: See TracChangeset
for help on using the changeset viewer.
