-
Notifications
You must be signed in to change notification settings - Fork 132
Closed
Description
π― Problem to be solved
If you turn log-format to JSON, you get the full normal log line as a key in the JSON, along with the JSON-ified value. This doubles the length of the log for little gain
π οΈ Proposed solution
Drop the pretty key from JSON logging
Example:
{"level":"warn","ts":"2025-08-22T06:52:31.762796658Z","caller":"peerinfo/peerinfo.go:255","msg":"Mismatching peer builder API status","peer":"selfish-box","peer_builder_api_enabled":true,"builder_api_enabled":false,"topic":"peerinfo","pretty":"WARN peerinfo Mismatching peer builder API status {\"peer\": \"selfish-box\", \"peer_builder_api_enabled\": true, \"builder_api_enabled\": false}\n"}jakubgs
Metadata
Metadata
Assignees
Labels
protocolProtocol Team ticketsProtocol Team tickets