Adjust logging level for frequent / low-level events (#130)
This commit is contained in:
parent
609cdc709b
commit
7a76001187
1 changed files with 19 additions and 19 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue