bug: log-rotate not work when access log is file and error log /dev/stderr
#11915
Labels
bug
Something isn't working
/dev/stderr
#11915
Current Behavior
when access log is a file and error log is
/dev/stderr
log-rotate will not work
cause it will attempts to rename and move error log which is
/dev/stderr
and get a error :and successfully rename and move
access.log
to2025-01-13_08-50-00__access.log
Then it will return and do not exec
signal.kill(pid, signal.signum("USR1"))
, access log keep writing to2025-01-13_08-50-00__access.log
and no newaccess.log
be created.so, when next time do log rotate
will get an error like below
Expected Behavior
log rotate should work normally when error_log or access log are set to /dev/stderr.
Error Logs
No response
Steps to Reproduce
set error_log to
/dev/stderr
Environment
The text was updated successfully, but these errors were encountered: