This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
library should also accept status code 201 #114
Labels
type: enhancement
A general enhancement
Milestone
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:
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
The text was updated successfully, but these errors were encountered: