From c4d5109d5ba41105f7d1c40af213731ee7a1cea2 Mon Sep 17 00:00:00 2001 From: Kiryl Kaveryn Date: Wed, 13 Aug 2025 13:48:45 +0400 Subject: [PATCH] [ios] Log the error when the exclude from icloud fails Signed-off-by: Kiryl Kaveryn --- libs/platform/platform_ios.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/platform/platform_ios.mm b/libs/platform/platform_ios.mm index 191f1f373..d7178727d 100644 --- a/libs/platform/platform_ios.mm +++ b/libs/platform/platform_ios.mm @@ -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);