status-desktop
status-desktop copied to clipboard
Implement logging of go request and response
Description
Similar to https://github.com/status-im/status-mobile/pull/21218/files We need this on desktop side as well. Appears to be config in status-go (examples from mobile):
https://github.com/status-im/status-mobile/blob/5df1e6caf69306ddc0552fbf9f9cc7d7d971bff1/src/status_im/common/log.cljs#L28-L32
logging-params {:enable? true
:mobile-system? false
:log-level level
:log-request-go? config/log-request-go
:callback handle-error}]
https://github.com/status-im/status-go/blob/a7daee3dae0cbad9549c7edc6cad9185caace27b/mobile/status.go#L1698-L1702
type InitLoggingRequest struct {
logutils.LogSettings
LogRequestGo bool `json:"LogRequestGo"`
LogRequestFile string `json:"LogRequestFile"`
}
the only matter involving infra would be making it conditional in CI dependent on build type ( for example in https://github.com/status-im/status-jenkins-lib/blob/d745a2afda688097bfa8f876417646ef3210358f/vars/linux.groovy#L8)