fluent / fluent-logger-python

A structured logger for Fluentd (Python)
http://fluentd.org/
Other
444 stars 138 forks source link

Added possibility not to forward _make_packet errors #187

Closed vgavro closed 8 months ago

vgavro commented 2 years ago

if there is some error in FluentSender._make_packet - it's forwarded to fluent host instead of adding possibility to get local exception before forward. Added option for this forward_packet_error - which defaults to True for backward-compatibility.

Also EventTime creation (for nanoseconds precision) moved to _make_packet - just to more easily implement some custom logic for bulk sending..

coveralls commented 2 years ago

Coverage Status

Coverage decreased (-0.3%) to 99.726% when pulling 0468c7d04520e8cdec5bca14ba88505b76d62422 on vgavro:no_forward_make_packet_error into ace80f4c2bd0020fc16891440243663c612dd01e on fluent:master.