Skip to content

Do not log 404 errors #98

@reenjii

Description

@reenjii

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions