Changeset 1222


Ignore:
Timestamp:
16/12/2006 16:12:35 (5 years ago)
Author:
chris
Message:

Improved debugging when a path to a location doesn't exist or can't be
opened. (refs #3)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/bin/bbackupd/BackupDaemon.cpp

    r1191 r1222  
    15631563                                box_time_t attrModTime = 0; 
    15641564                                BackupClientFileAttributes attr; 
    1565                                 attr.ReadAttributes(ploc->mPath.c_str(), true /* directories have zero mod times */, 
    1566                                         0 /* not interested in mod time */, &attrModTime /* get the attribute modification time */); 
     1565                                try 
     1566                                { 
     1567                                        attr.ReadAttributes(ploc->mPath.c_str(),  
     1568                                                true /* directories have zero mod times */, 
     1569                                                0 /* not interested in mod time */,  
     1570                                                &attrModTime /* get the attribute modification time */); 
     1571                                } 
     1572                                catch (BoxException &e) 
     1573                                { 
     1574                                        ::syslog(LOG_ERR, "Failed to get attributes for path " 
     1575                                                "'%s', skipping.", ploc->mPath.c_str()); 
     1576                                        continue; 
     1577                                } 
    15671578                                 
    15681579                                // Execute create directory command 
     
    15881599                        delete ploc; 
    15891600                        ploc = 0; 
     1601                        ::syslog(LOG_ERR, "Failed to setup location '%s' path '%s'", 
     1602                                ploc->mName.c_str(), ploc->mPath.c_str()); 
    15901603                        throw; 
    15911604                } 
Note: See TracChangeset for help on using the changeset viewer.