Skip to content

Commit b5a4f51

Browse files
authored
fix(logging): update protection level (#4106)
1 parent d01b884 commit b5a4f51

File tree

1 file changed

+2
-2
lines changed
  • AmplifyPlugins/Logging/Sources/AWSCloudWatchLoggingPlugin/Persistence

1 file changed

+2
-2
lines changed

AmplifyPlugins/Logging/Sources/AWSCloudWatchLoggingPlugin/Persistence/LogRotation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ final class LogRotation {
209209
contents: nil,
210210
attributes: [FileAttributeKey: Any]()
211211
)
212-
if #available(macOS 11.0, *) {
212+
if #available(macOS 11.0, iOS 9.0, *) {
213213
let resourceValues: [URLResourceKey: Any] = [
214-
URLResourceKey.fileProtectionKey: URLFileProtection.complete,
214+
URLResourceKey.fileProtectionKey: URLFileProtection.completeUntilFirstUserAuthentication,
215215
URLResourceKey.isExcludedFromBackupKey: true
216216
]
217217
try (fileURL as NSURL).setResourceValues(resourceValues)

0 commit comments

Comments
 (0)