Skip to content

[FEAT]: should 304 conditional requests be logged as errors? #725

Open
@jeffwilcox

Description

@jeffwilcox

Describe the need

Not sure if this is a request to "change the default behavior" or "allow some magical flags to customize"...

We make use of conditional requests a lot. We've had to patch the standard Octokit opinionated plugin choices with a version where we treat a 304 error.status as informational instead of an error - our server logs were full of all the conditional requests that "successfully" returned 304s.

Not sure if this is something that's come up before, but would love to know how common it is that others do not want to see endless log spew such as this...

GET /repos/contosoenterprise/my-test-repo - 304 with id F178:35CFAD:10ED6DE5:100C9A83:6722BC7D in 243ms

Just a comment.

SDK Version

N/A

API Version

N/A

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions