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