opsgenie / opsgenie-go-sdk-v2

Opsgenie GO SDK v2
Apache License 2.0
34 stars 63 forks source link

Result of request should be a log field, not stringified #103

Open brensch opened 2 years ago

brensch commented 2 years ago

https://github.com/opsgenie/opsgenie-go-sdk-v2/blob/d0825cdedb9b4b60159b8759c699c3e8c70186f9/client/client.go#L495 The request response in this log is being stringified into the log message, making it more difficult to gain insights programmatically from the logs. The logger object is from Logrus, so we should use a .WithField() for the result.