Adjust logging level for frequent / low-level events (#130)

This commit is contained in:
Mattt 2025-06-05 05:36:37 -07:00 • committed by GitHub
commit 7a76001187
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -659,7 +659,7 @@ public actor Client {
// MARK: -
private func handleResponse(_ response: Response<AnyMethod>) async {
await logger?.debug(
await logger?.trace(
"Processing response",
metadata: ["id": "\(response.id)"])
@ -684,7 +684,7 @@ public actor Client {
}
private func handleMessage(_ message: Message<AnyNotification>) async {
await logger?.debug(
await logger?.trace(
"Processing notification",
metadata: ["method": "\(message.method)"])
@ -728,7 +728,7 @@ public actor Client {
// Add handler for batch responses
private func handleBatchResponse(_ responses: [AnyResponse]) async {
await logger?.debug("Processing batch response", metadata: ["count": "\(responses.count)"])
await logger?.trace("Processing batch response", metadata: ["count": "\(responses.count)"])
for response in responses {
// Attempt to remove the pending request.
// If successful, pendingRequest contains the request.