Skip to content

Commit

Permalink
fix: message logs ios
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Dec 14, 2022
1 parent 48e2b21 commit 2cd95e8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ios/Plugin/CapacitorUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ extension CustomError: LocalizedError {
latest.sessionKey = sessionKey
}
case let .failure(error):
print("\(self.TAG) Error getting Latest", error )
latest.message = "Error getting Latest \(error)"
print("\(self.TAG) Error getting Latest", response.value, error )
latest.message = "Error getting Latest \(response.value)"
latest.error = "fail_response"
}
semaphore.signal()
Expand Down Expand Up @@ -471,7 +471,7 @@ extension CustomError: LocalizedError {
mainError = error as NSError
}
case let .failure(error):
print("\(self.TAG) download error", error)
print("\(self.TAG) download error", response.value!, error)
mainError = error as NSError
}
}
Expand Down Expand Up @@ -645,8 +645,8 @@ extension CustomError: LocalizedError {
setChannel.message = message
}
case let .failure(error):
print("\(self.TAG) Error set Channel", error)
setChannel.message = "Error set Channel \(error)"
print("\(self.TAG) Error set Channel", response.value, error)
setChannel.message = "Error set Channel \(String(describing: response.value))"
setChannel.error = "fail_response"
}
semaphore.signal()
Expand Down Expand Up @@ -683,8 +683,8 @@ extension CustomError: LocalizedError {
getChannel.allowSet = allowSet
}
case let .failure(error):
print("\(self.TAG) Error get Channel", error )
getChannel.message = "Error get Channel \(error)"
print("\(self.TAG) Error get Channel", response.value, error)
getChannel.message = "Error get Channel \(String(describing: response.value)))"
getChannel.error = "fail_response"
}
semaphore.signal()
Expand All @@ -706,7 +706,7 @@ extension CustomError: LocalizedError {
case .success:
print("\(self.TAG) Stats send for \(action), version \(versionName)")
case let .failure(error):
print("\(self.TAG) Error sending stats: ", error )
print("\(self.TAG) Error sending stats: ", response.value, error)
}
}
}
Expand Down

0 comments on commit 2cd95e8

Please sign in to comment.