Changeset 2284


Ignore:
Timestamp:
14/09/2008 00:43:47 (3 years ago)
Author:
chris
Message:

Log which command succeeded or failed, rather than just "Succeeded",
which is not very helpful in system logs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupctl/bbackupctl.cpp

    r2149 r2284  
    258258                { 
    259259                        // send a sync command 
    260                         std::string cmd("force-sync\n"); 
     260                        commandName = "force-sync"; 
     261                        std::string cmd = commandName + "\n"; 
    261262                        connection.Write(cmd.c_str(), cmd.size()); 
    262263                        connection.WriteAllBuffered(); 
     
    338339                                        if(!quiet) 
    339340                                        { 
    340                                                 BOX_INFO("Succeeded."); 
     341                                                BOX_INFO("Control command " 
     342                                                        "succeeded: " << 
     343                                                        commandName); 
    341344                                        } 
    342345                                        finished = true; 
     
    344347                                else if(line == "error") 
    345348                                { 
    346                                         BOX_ERROR("Check command spelling"); 
     349                                        BOX_ERROR("Control command failed: " << 
     350                                                commandName << ". Check " 
     351                                                "command spelling"); 
    347352                                        returnCode = 1; 
    348353                                        finished = true; 
Note: See TracChangeset for help on using the changeset viewer.