[ios] Log the error when the exclude from icloud fails

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn
2025-08-13 13:48:45 +04:00
committed by Yannik Bloscheck
parent 59499333ff
commit c4d5109d5b

View File

@@ -83,7 +83,7 @@ void Platform::DisableBackupForFile(std::string const & filePath)
BOOL valueRaw = YES;
CFNumberRef value = CFNumberCreate(kCFAllocatorDefault, kCFNumberCharType, &valueRaw);
if (!CFURLSetResourcePropertyForKey(url, kCFURLIsExcludedFromBackupKey, value, &err))
NSLog(@"Error while disabling iCloud backup for file: %s", filePath.c_str());
LOG(LERROR, ("Error:", err, "while disabling iCloud backup for file:", filePath.c_str()));
CFRelease(value);
CFRelease(url);