Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

library should also accept status code 201 #114

@madmuffin1

Description

@madmuffin1

Hi,

we're happily using this library to send our logs to a managed logging service using HTTP. This logging service apparently implemented the HTTP receipt of the message differently than this library expects it.

This library requires the HTTP service to respond with a 202 (see biz.paluch.logging.gelf.intern.sender.GelfHTTPSender#L63,) but they send a 201 CREATED.

As it is a managed service, we cannot change its behavior. Actually everything is working ok, but logstash-gelf kind of spams our logs, these two lines will be produced for every single log message sent:

14:14:53,747 |-ERROR in biz.paluch.logging.gelf.logback.GelfLogbackAppender[GELF] - Server responded with unexpected status code: 201
14:14:53,749 |-ERROR in biz.paluch.logging.gelf.logback.GelfLogbackAppender[GELF] - Could not send GELF message

I would happily help out and work on a PR, but would like to know which solution you prefer:

a) generally allow 201
b) make this configurable

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions