tox-dev / filelock

A platform-independent file lock for Python.
https://py-filelock.readthedocs.io
The Unlicense
760 stars 107 forks source link

Add logging for OSError exceptions #351

Closed aamir-s18 closed 1 month ago

aamir-s18 commented 3 months ago

Hey, I had some issues with a library using filelock. My process was stucking all the time, it took me some time and printing messages in filelock to figure out that the issue was related to my mounted NFS storage. I think it would be helpful to have a log when fcntl.flock fails, so the user know where the issue is coming from.

I added the two logging messages for Windows and Unix.

gaborbernat commented 1 month ago

Seems stalled.