opsgenie / opsgenie-go-sdk-v2

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

Do not log 404 errors #98

Open reenjii opened 2 years ago

reenjii commented 2 years ago

Hello,

I have a workflow where I try to get an OpsGenie alert by alias to check existence and close it if needed. Whenever I get an alert that does not exist on OpsGenie, SDK logs an error-level message on API 404 error. This creates many error-level logs on my application despite everything working as expected.

Here is the culprit: https://github.com/opsgenie/opsgenie-go-sdk-v2/blob/master/client/client.go#L475

I want to remove this log because it is not an actual API error, and leave it to the caller to decide to log this information.

Thanks

snigle commented 2 years ago

up ?