Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
library should also accept status code 201 #114
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