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]))