eht16 / python-logstash-async

Python logging handler for sending log events asynchronously to Logstash.
MIT License
186 stars 51 forks source link

ModuleNotFoundError: No module named 'fcntl' #82

Closed arossert closed 1 year ago

arossert commented 1 year ago

The latest version is not working on Windows as fcntl is not exists

eht16 commented 1 year ago

It is expected and obvious that fnctl is not available on Windows. I did not expect that anyone would use the library on Windows.

I will make the send buffer check optional. Though I will not make a full alternative implementation for Windows. PRs welcome.

For my curiosity, do you use the library on Windows in a production environment or "just" in a development environment?

arossert commented 1 year ago

We are also using it in production

eht16 commented 1 year ago

Should be fixed in master (https://github.com/eht16/python-logstash-async/commit/aea33fb57734a2a092d4ad4cddbe02cacfefced3). It would be great if you could test it.

Release will follow soon.