Skip to content

Commit

Permalink
fix: show libxmtp logs message on iOS (#387)
Browse files Browse the repository at this point in the history
* fix: show libxmtp logs message on iOS

* update podspec

---------

Co-authored-by: cameronvoell <cameronvoell@users.noreply.github.com>
  • Loading branch information
cameronvoell and cameronvoell authored Aug 16, 2024
1 parent e44984e commit 8c5a398
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/xmtp/libxmtp-swift.git",
"state" : {
"revision" : "d2be5067e81abb0e1521782adfc0f9bb438cc4c1",
"version" : "0.5.6-beta4"
"revision" : "c7cec01e9065812c1b604edd85ff72492bfd51b7",
"version" : "0.5.7-beta1"
}
},
{
Expand Down
8 changes: 4 additions & 4 deletions Sources/XMTPiOS/XMTPLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ class XMTPLogger: FfiLogger {
func log(level: UInt32, levelLabel: String, message: String) {
switch level {
case 1:
logger.error("libxmtp[\(levelLabel, privacy: .public)] - \(message)")
logger.error("libxmtp[\(levelLabel, privacy: .public)] - \(message, privacy: .public)")
case 2, 3:
logger.info("libxmtp[\(levelLabel, privacy: .public)] - \(message)")
logger.info("libxmtp[\(levelLabel, privacy: .public)] - \(message, privacy: .public)")
case 4:
logger.debug("libxmtp[\(levelLabel, privacy: .public)] - \(message)")
logger.debug("libxmtp[\(levelLabel, privacy: .public)] - \(message, privacy: .public)")
case 5:
logger.trace("libxmtp[\(levelLabel, privacy: .public)] - \(message)")
logger.trace("libxmtp[\(levelLabel, privacy: .public)] - \(message, privacy: .public)")
default:
print("libxmtp[\(levelLabel)] - \(message)")
}
Expand Down
2 changes: 1 addition & 1 deletion XMTP.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#

spec.name = "XMTP"
spec.version = "0.14.3"
spec.version = "0.14.4"
spec.summary = "XMTP SDK Cocoapod"

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit 8c5a398

Please sign in to comment.