diff options
author | 2009-06-26 17:19:11 -0400 | |
---|---|---|
committer | 2009-06-26 17:19:11 -0400 | |
commit | 6eabaa311f752bba624dff00a62b02a34119f55a (patch) | |
tree | d73bd5b89127ea2f627bf5b9a2d9ac8771aab505 /libs/utils/BackupHelpers.cpp | |
parent | 0fccd5bfc05dce04f4400d56b0ca811c7ba9de99 (diff) |
Better (and less) logging from backup.
Diffstat (limited to 'libs/utils/BackupHelpers.cpp')
-rw-r--r-- | libs/utils/BackupHelpers.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/utils/BackupHelpers.cpp b/libs/utils/BackupHelpers.cpp index 99a4abcb6e..4ad9b51795 100644 --- a/libs/utils/BackupHelpers.cpp +++ b/libs/utils/BackupHelpers.cpp @@ -68,11 +68,15 @@ struct file_metadata_v1 { const static int CURRENT_METADATA_VERSION = 1; -#if 1 // TEST_BACKUP_HELPERS +#if 1 +#define LOGP(f, x...) +#else +#if TEST_BACKUP_HELPERS #define LOGP(f, x...) printf(f "\n", x) #else #define LOGP(x...) LOGD(x) #endif +#endif const static int ROUND_UP[4] = { 0, 3, 2, 1 }; @@ -349,7 +353,6 @@ back_up_files(int oldSnapshotFD, BackupDataWriter* dataStream, int newSnapshotFD err = stat(file, &st); if (err != 0) { - LOGW("Error stating file %s", file); r.deleted = true; } else { r.deleted = false; |