diff options
author | Chris Wilson <chris+github@qwirx.com> | 2011-01-08 21:33:19 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2011-01-08 21:33:19 +0000 |
commit | 74313ca88404608767b6202313cb9bee51d5975e (patch) | |
tree | 4eb130d2b0a06a714229c91568fa2bb4f39d306f /lib/backupclient/BackupStoreFile.cpp | |
parent | 24d88d1bcbe740c230c6ddace0ef982b579e6af8 (diff) |
Log the path, name and size of files being restored at TRACE level for
users wanting more detailed restore output.
Disable printing dots when logging at TRACE level is enabled.
Warn rather than failing to restore when the file attributes could not
be restored. (merges [2745], [2827]).
Diffstat (limited to 'lib/backupclient/BackupStoreFile.cpp')
-rw-r--r-- | lib/backupclient/BackupStoreFile.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/backupclient/BackupStoreFile.cpp b/lib/backupclient/BackupStoreFile.cpp index 44d96d0c..bd62b7ba 100644 --- a/lib/backupclient/BackupStoreFile.cpp +++ b/lib/backupclient/BackupStoreFile.cpp @@ -314,7 +314,15 @@ void BackupStoreFile::DecodeFile(IOStream &rEncodedFile, const char *DecodedFile // ASSERT(drained == 0); // Write the attributes - stream->GetAttributes().WriteAttributes(DecodedFilename); + try + { + stream->GetAttributes().WriteAttributes(DecodedFilename); + } + catch (std::exception& e) + { + BOX_WARNING("Failed to restore attributes on " << + DecodedFilename << ": " << e.what()); + } } catch(...) { |