From 9e96415e73a6499d32965f6e92ece73fde024681 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Thu, 18 Jul 2024 19:01:25 +0200 Subject: [PATCH] rename debug options --- LeStorage/Utils/Codable+Extensions.swift | 2 +- LeStorage/Utils/Logger.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LeStorage/Utils/Codable+Extensions.swift b/LeStorage/Utils/Codable+Extensions.swift index 5bd1c8d..f9fcbd0 100644 --- a/LeStorage/Utils/Codable+Extensions.swift +++ b/LeStorage/Utils/Codable+Extensions.swift @@ -10,7 +10,7 @@ import Foundation fileprivate var jsonEncoder: JSONEncoder = { let encoder = JSONEncoder() encoder.keyEncodingStrategy = .convertToSnakeCase - #if DEBUG + #if _DEBUG_OPTIONS encoder.outputFormatting = .prettyPrinted #endif encoder.dateEncodingStrategy = .iso8601 diff --git a/LeStorage/Utils/Logger.swift b/LeStorage/Utils/Logger.swift index 4d79490..8af0b7a 100644 --- a/LeStorage/Utils/Logger.swift +++ b/LeStorage/Utils/Logger.swift @@ -40,7 +40,7 @@ import Foundation @objc static public func crashLogging(_ message: String, file: String = #file, function: String = #function, line: Int = #line) { let fileName: String = file.components(separatedBy: "/").last ?? file - #if DEBUG + #if _DEBUG_OPTIONS NSLogv("%@.%i.%@: %@", getVaList([fileName, line, function, message])) #else //Crashlytics.crashlytics().log(format: "%@.%i.%@: %@", arguments: getVaList([fileName, line, function, message]))