diff options
| -rw-r--r-- | ios/MullvadVPN/AppDelegate.swift | 2 | ||||
| -rw-r--r-- | ios/MullvadVPNTests/LoggingTests.swift | 12 |
2 files changed, 1 insertions, 13 deletions
diff --git a/ios/MullvadVPN/AppDelegate.swift b/ios/MullvadVPN/AppDelegate.swift index 88c9b0e4e6..291ed2b46b 100644 --- a/ios/MullvadVPN/AppDelegate.swift +++ b/ios/MullvadVPN/AppDelegate.swift @@ -360,8 +360,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD loggerBuilder.install() logger = Logger(label: "AppDelegate") - - loggerBuilder.logLevel = .debug } private func addApplicationNotifications(application: UIApplication) { diff --git a/ios/MullvadVPNTests/LoggingTests.swift b/ios/MullvadVPNTests/LoggingTests.swift index 337f850560..af0a9e857a 100644 --- a/ios/MullvadVPNTests/LoggingTests.swift +++ b/ios/MullvadVPNTests/LoggingTests.swift @@ -19,17 +19,7 @@ class MullvadLoggingTests: XCTestCase { // Add a teardown block to delete any file at `fileURL`. addTeardownBlock { - do { - let fileManager = FileManager.default - // Check that the file exists before trying to delete it. - if fileManager.fileExists(atPath: fileURL.path) { - // Perform the deletion. - try fileManager.removeItem(at: fileURL) - } - } catch { - // Treat any errors during file deletion as a test failure. - XCTFail("Error while deleting temporary file: \(error)") - } + try? FileManager.default.removeItem(at: fileURL) } // Return the temporary file URL for use in a test method. |
