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
|
|
@ -380,7 +380,7 @@ public actor Server {
|
|||
|
||||
/// Process a batch of requests and/or notifications
|
||||
private func handleBatch(_ batch: Batch) async throws {
|
||||
await logger?.debug("Processing batch request", metadata: ["size": "\(batch.items.count)"])
|
||||
await logger?.trace("Processing batch request", metadata: ["size": "\(batch.items.count)"])
|
||||
|
||||
if batch.items.isEmpty {
|
||||
// Empty batch is invalid according to JSON-RPC spec
|
||||
|
|
@ -450,7 +450,7 @@ public actor Server {
|
|||
)
|
||||
}
|
||||
|
||||
await logger?.debug(
|
||||
await logger?.trace(
|
||||
"Processing request",
|
||||
metadata: [
|
||||
"method": "\(request.method)",
|
||||
|
|
@ -505,7 +505,7 @@ public actor Server {
|
|||
}
|
||||
|
||||
private func handleMessage(_ message: Message<AnyNotification>) async throws {
|
||||
await logger?.debug(
|
||||
await logger?.trace(
|
||||
"Processing notification",
|
||||
metadata: ["method": "\(message.method)"])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue