Dev: replace NSLog with JNI.errorLog
This commit is contained in:
parent
51d1f2fae3
commit
640089e36f
|
@ -11,7 +11,7 @@ let package = Package(
|
|||
)
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/readdle/java_swift.git", .exact("2.1.2")),
|
||||
.package(url: "https://github.com/readdle/java_swift.git", .exact("2.1.3")),
|
||||
.package(url: "https://github.com/readdle/swift-anycodable.git", .exact("1.0.0")),
|
||||
],
|
||||
targets: [
|
||||
|
|
|
@ -120,7 +120,7 @@ fileprivate class JavaObjectContainer<K : CodingKey> : KeyedDecodingContainerPro
|
|||
}
|
||||
catch {
|
||||
if self.decoder.missingFieldsStrategy == .ignore {
|
||||
NSLog("Ignore error: \(error)")
|
||||
JNI.errorLogger("Ignore error: \(error)")
|
||||
return defaultValue
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -197,7 +197,7 @@ fileprivate class JavaObjectContainer<K : CodingKey> : KeyedEncodingContainerPro
|
|||
}
|
||||
catch {
|
||||
if self.encoder.missingFieldsStrategy == .ignore {
|
||||
NSLog("Ignore error: \(error)")
|
||||
JNI.errorLogger("Ignore error: \(error)")
|
||||
}
|
||||
else {
|
||||
throw error
|
||||
|
@ -472,7 +472,7 @@ fileprivate class JavaAnyCodableContainer<K : CodingKey> : KeyedEncodingContaine
|
|||
}
|
||||
catch {
|
||||
if self.encoder.missingFieldsStrategy == .ignore {
|
||||
NSLog("Ignore error: \(error)")
|
||||
JNI.errorLogger("Ignore error: \(error)")
|
||||
}
|
||||
else {
|
||||
throw error
|
||||
|
|
Loading…
Reference in New Issue