Closed zaibacu closed 8 years ago
So if I understand correctly the test doesn't really send any data to riemann? Otherwise I don't understand how it works on Travis without starting an actual server...
Well there's not much point in testing: riemann-client -> riemann traffic, because it is already done, and kinda is https://github.com/borntyping/python-riemann-client responsability.
I would agree with creating stub TCP server and checking if there's traffic in it. This way riemann-client would be provoked to use protobuf and do actual serialization, any field mismatch would result in exception which would signal that something is not right at this side
Ok, I'll merge this for now, but it will wait before an official release to gather some run time.
@zaibacu It seams like this feature is broken (See https://travis-ci.org/getlogbook/logbook/jobs/204330723 for more details). I'm temporary removing this from setup.py
and from Travis. Would appreciate if you could help by looking into it. Thanks!
@vmalloc ok, I will look into it tomorrow
@zaibacu Thanks a lot!
Ok, so the deal is, that protobuf version 3.2 broke everything. riemann-client library requires protobuf to be protobuf>=3.0.0b2,<4.0.0
thus installing broken version. One quick fix would be preinstall protobuf 3.1.0 version before installing riemann-client. Another - https://github.com/borntyping/python-riemann-client/issues/30 there's already issue registered for that, I guess there will be PR sooner or later to fix this :)
@zaibacu ok. So disabling for now, and I'll reintroduce it once it's stable again. Thanks!
New handler type which allows to push logs to Riemann via TCP or UDP.
Currently missing: TLS support, and
riemann-client
(https://github.com/borntyping/python-riemann-client) uses experimental protobuf support for Python 3. However, I haven't got any issues with it.