Granian ver 1.5.2
Python ver 3.12.4
OS: Windows 10 Enterprise - build 19045
When I configure granian to use the Python logging RotatingFileHandler, I get an error when the first file reaches the defined maximum file size. The file is not able to be closed and renamed with the .1 file extension.
This is the error that is displayed in the console:
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Logs\Starlette\access.log' -> 'C:\Logs\Starlette\access.log.1'
I have debugging in Starlette disabled, reload in granian is turned off, and the log level is set to info. I am only using one worker, since I'm running on Windows.
The RotatingFileHandler will work with uvicorn if I limit it to a single worker process, but I run into the same error if I use multiple workers with uvicorn. I don't know if this is pointing at the separate granian and Python processes being related to the problem, or if I have something else misconfigured. I can post my logging configuration JSON file if needed. Thanks ahead of time for any suggestions.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too