Open enjoy-binbin opened 3 years ago
I encountered a problem when using asyncsender, the fastapi project, fluent-logger==0.9.6
When I was running pytest, I found that it would be blocked for a long time after the pytest ended
And not any log to tell me why, stuck here for a while time
Found that when the logger sends logs, each log will be blocked for 20 seconds because of socket connect.
Because the fluent address error, every time when _send_loop consume a log, it will trigger _reconnect.
_send_loop
_reconnect
And each _reconnect will took 20 seconds. I thought of two ways
Sorry about the bad english :). Feel free to close this if un-needed :)
I encountered a problem when using asyncsender, the fastapi project, fluent-logger==0.9.6
When I was running pytest, I found that it would be blocked for a long time after the pytest ended
And not any log to tell me why, stuck here for a while time
Found that when the logger sends logs, each log will be blocked for 20 seconds because of socket connect.
Because the fluent address error, every time when
_send_loop
consume a log, it will trigger_reconnect
.And each
_reconnect
will took 20 seconds. I thought of two waysSorry about the bad english :). Feel free to close this if un-needed :)