vanthome / winston-elasticsearch

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

chore: fix template mapping import #212

Closed simon-tannai closed 2 years ago

simon-tannai commented 2 years ago

According to my issue #211 , I wrote a deadly simple fix to avoid EMFILE error.

Instead of read the template file with fs module, simple require it as a raw JavaScript object. Then, inject the template if the given configuration does not contains one.