From 2eeba2d79f4cc8586bbfc7858400ca1246312214 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 4 Oct 2018 09:57:54 -0400 Subject: [PATCH] Fix spurious assert in orphan data clenaer. --- Signal/src/util/OWSOrphanDataCleaner.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Signal/src/util/OWSOrphanDataCleaner.m b/Signal/src/util/OWSOrphanDataCleaner.m index aa9de015b..f9dc96aa4 100644 --- a/Signal/src/util/OWSOrphanDataCleaner.m +++ b/Signal/src/util/OWSOrphanDataCleaner.m @@ -692,8 +692,8 @@ typedef void (^OrphanDataBlock)(OWSOrphanData *); NSError *error; NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:filePath error:&error]; if (!attributes || error) { - OWSLogDebug(@"Could not get attributes of file at: %@", filePath); - OWSFailDebug(@"Could not get attributes of file"); + // This is fine; the file may have been deleted since we found it. + OWSLogWarn(@"Could not get attributes of file at: %@", filePath); continue; } // Don't delete files which were created in the last N minutes.