Changeset 2227

Show
Ignore:
Timestamp:
08/08/2008 23:49:42 (5 months ago)
Author:
chris
Message:

Fix redundant logging of command socket messages.

Reformat for readability.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupDaemon.cpp

    r2213 r2227  
    458458                                handles[1] = rSocket.GetReadableEvent(); 
    459459                                 
    460                                 BOX_TRACE("Received command '" << command  
    461                                         << "' over command socket"); 
    462  
    463460                                DWORD result = WaitForMultipleObjects( 
    464461                                        sizeof(handles)/sizeof(*handles), 
     
    496493                                else if(result != 1) 
    497494                                { 
    498                                         BOX_ERROR("WaitForMultipleObjects returned invalid result " << result); 
     495                                        BOX_ERROR("WaitForMultipleObjects " 
     496                                                "returned invalid result " << 
     497                                                result); 
    499498                                        continue; 
    500499                                } 
     
    506505                                } 
    507506 
    508                                 BOX_INFO("Received command " << command <<  
    509                                         " from client"); 
     507                                BOX_INFO("Received command '" << command <<  
     508                                        "' over command socket"); 
    510509 
    511510                                bool sendOK = false; 
     
    554553                                        BOX_ERROR("Received unknown command " 
    555554                                                "'" << command << "' " 
    556                                                 "from client"); 
     555                                                "over command socket"); 
    557556                                        sendResponse = true; 
    558557                                        sendOK = false; 
     
    562561                                if(sendResponse) 
    563562                                { 
    564                                         const char* response = sendOK ? "ok\n" : "error\n"; 
    565                                         rSocket.Write( 
    566                                                 response, strlen(response)); 
     563                                        const char* response = 
     564                                                sendOK ? "ok\n" : "error\n"; 
     565                                        rSocket.Write(response, 
     566                                                strlen(response)); 
    567567                                } 
    568568