Changeset 2396


Ignore:
Timestamp:
01/12/2008 22:17:52 (3 years ago)
Author:
chris
Message:

Reduce severity of some log messages about notifying system
administrator. It's not an error to have no NotifyScript.

File:
1 edited

Legend:

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

    r2324 r2396  
    21592159        { 
    21602160                // Don't send lots of repeated messages 
     2161                // Note: backup-start and backup-finish will always be 
     2162                // logged, because mLastNotifiedEvent is never set to 
     2163                // these values and therefore they are never "duplicates". 
    21612164                if(mLastNotifiedEvent == Event) 
    21622165                { 
    2163                         BOX_WARNING("Suppressing duplicate notification about " << 
    2164                                 sEventNames[Event]); 
     2166                        if(Event == SysadminNotifier::BackupOK) 
     2167                        { 
     2168                                BOX_INFO("Suppressing duplicate notification " 
     2169                                        "about " << sEventNames[Event]); 
     2170                        } 
     2171                        else 
     2172                        { 
     2173                                BOX_WARNING("Suppressing duplicate notification " 
     2174                                        "about " << sEventNames[Event]); 
     2175                        } 
    21652176                        return; 
    21662177                } 
     
    21752186                        Event != SysadminNotifier::BackupFinish) 
    21762187                { 
    2177                         BOX_ERROR("Not notifying administrator about event " 
     2188                        BOX_INFO("Not notifying administrator about event " 
    21782189                                << sEventNames[Event] << " -- set NotifyScript " 
    21792190                                "to do this in future"); 
     
    21872198         
    21882199        // Log what we're about to do 
    2189         BOX_NOTICE("About to notify administrator about event " 
     2200        BOX_INFO("About to notify administrator about event " 
    21902201                << sEventNames[Event] << ", running script '" 
    21912202                << script << "'"); 
     
    21952206        if(returnCode != 0) 
    21962207        { 
    2197                 BOX_ERROR("Notify script returned error code: " << 
     2208                BOX_WARNING("Notify script returned error code: " << 
    21982209                        returnCode << " ('" << script << "')"); 
    21992210        } 
Note: See TracChangeset for help on using the changeset viewer.