mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-26 04:45:20 +00:00
Rename logError(…) to error(…)
This commit is contained in:
@@ -281,7 +281,7 @@ final class NoiseEncryptionService {
|
||||
let signature = try signingKey.signature(for: data)
|
||||
return signature
|
||||
} catch {
|
||||
SecureLogger.logError(error, context: "Failed to sign data", category: .noise)
|
||||
SecureLogger.error(error, context: "Failed to sign data", category: .noise)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
@@ -292,7 +292,7 @@ final class NoiseEncryptionService {
|
||||
let signingPublicKey = try Curve25519.Signing.PublicKey(rawRepresentation: publicKey)
|
||||
return signingPublicKey.isValidSignature(signature, for: data)
|
||||
} catch {
|
||||
SecureLogger.logError(error, context: "Failed to verify signature", category: .noise)
|
||||
SecureLogger.error(error, context: "Failed to verify signature", category: .noise)
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -578,7 +578,7 @@ final class NoiseEncryptionService {
|
||||
// Signal that handshake is needed
|
||||
onHandshakeRequired?(peerID)
|
||||
} catch {
|
||||
SecureLogger.logError(error, context: "Failed to initiate rekey for peer: \(peerID)", category: .session)
|
||||
SecureLogger.error(error, context: "Failed to initiate rekey for peer: \(peerID)", category: .session)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user