Changeset 2396
- Timestamp:
- 01/12/2008 22:17:52 (3 years ago)
- File:
-
- 1 edited
-
box/trunk/bin/bbackupd/BackupDaemon.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupd/BackupDaemon.cpp
r2324 r2396 2159 2159 { 2160 2160 // 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". 2161 2164 if(mLastNotifiedEvent == Event) 2162 2165 { 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 } 2165 2176 return; 2166 2177 } … … 2175 2186 Event != SysadminNotifier::BackupFinish) 2176 2187 { 2177 BOX_ ERROR("Not notifying administrator about event "2188 BOX_INFO("Not notifying administrator about event " 2178 2189 << sEventNames[Event] << " -- set NotifyScript " 2179 2190 "to do this in future"); … … 2187 2198 2188 2199 // 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 " 2190 2201 << sEventNames[Event] << ", running script '" 2191 2202 << script << "'"); … … 2195 2206 if(returnCode != 0) 2196 2207 { 2197 BOX_ ERROR("Notify script returned error code: " <<2208 BOX_WARNING("Notify script returned error code: " << 2198 2209 returnCode << " ('" << script << "')"); 2199 2210 }
Note: See TracChangeset
for help on using the changeset viewer.
