pytelegraf icon indicating copy to clipboard operation
pytelegraf copied to clipboard

Return boolean after send?

Open brianleung24 opened this issue 7 years ago • 1 comments

https://github.com/paksu/pytelegraf/blob/a5a326bd99902768be2bf10da7dde2dfa165c013/telegraf/client.py#L51

Hello developers,

Just wondering can we hv a return value (boolean) in the send() method? Therefore we can at least realise the Telegraf is offline and we can log it our way. Thanks

brianleung24 avatar Jun 06 '18 08:06 brianleung24

@brianleung24 A return value isn't possible because by sending UDP packets to telegraf, pytelegraf doesn't cannot know if they were received or not. It's "fire-and-forget" with UDP.

chdsbd avatar Dec 02 '18 03:12 chdsbd