vanthome / winston-elasticsearch

An elasticsearch transport for winston
MIT License
270 stars 132 forks source link

Duplication of logs when an ES error occurs #219

Open mashkovtsev opened 2 years ago

mashkovtsev commented 2 years ago

Hi, we are faced with the problem of duplicating non-erroneous logs, when erroneous logs occur.

Reproduced on:

I have prepared a demo: https://github.com/mashkovtsev/demo-bug-winston-elasticsearch.

Thanks!

mobiusy commented 2 years ago

You can set retryLimit: -1 in temporary before this bug fixed.