Changeset 2143

Show
Ignore:
Timestamp:
09/04/2008 21:03:16 (2 years ago)
Author:
chris
Message:

Improve LogAllFileAccess logging by making the simple case (file not
changed) easier to read.

Files:
1 modified

Legend:

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

    r2127 r2143  
    857857                        } 
    858858                } 
    859  
    860                 if (!doUpload) 
     859         
     860                if (en != 0 && en->GetModificationTime() == modTime) 
    861861                { 
    862862                        BOX_TRACE(filename << ": will not upload " 
    863                                 "(no reason to upload, mod time is " 
    864                                 << modTime << " versus sync period " 
     863                                "(not modified since last upload)"); 
     864                } 
     865                else if (!doUpload) 
     866                { 
     867                        BOX_TRACE(filename << ": will not upload " 
     868                                "(mod time is " << modTime <<  
     869                                " which is outside sync window, " 
    865870                                << rParams.mSyncPeriodStart << " to " 
    866871                                << rParams.mSyncPeriodEnd << ")");