Skip to content

Switch log level back to info when request fails #417

@dominykas

Description

@dominykas

https://github.com/octokit/plugin-request-log.js/pull/382/files changed the log level for failed requests to error from info. I'm not sure if that was a deliberate change, but it is undesireable where I am - error handling is done by the consumer application and errors in the console are distracting.

I also found no obvious way to switch off that log line - switching off all octokit error logs also feels like something one should not do lightly?

Happy to open a PR with whatever fix is desired (just switch back to info? add an explicit option with some default value?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions