Hello, I am using logrus+lumberjackrus to regularly cut logs. After deleting old logs, I checked lsof | grep delete and found that the hard drive was not released. How did this happen? I have not found the problem yet
I found that every time I restart the service, the first log of the cut is deleted and the handle is occupied.
`
//supervisor restart log
2023-09-13 04:13:26,945 INFO waiting for trace-peer to stop
2023-09-13 04:13:26,998 INFO stopped: trace-peer (exit status 0)
2023-09-13 04:13:27,003 INFO spawned: 'trace-peer' with pid 970447
2023-09-13 04:13:33,101 INFO success: trace-peer entered RUNNING state, process has stayed up for > than 6 seconds (startsecs)
Hello, I am using logrus+lumberjackrus to regularly cut logs. After deleting old logs, I checked lsof | grep delete and found that the hard drive was not released. How did this happen? I have not found the problem yet I found that every time I restart the service, the first log of the cut is deleted and the handle is occupied.
` //supervisor restart log 2023-09-13 04:13:26,945 INFO waiting for trace-peer to stop 2023-09-13 04:13:26,998 INFO stopped: trace-peer (exit status 0) 2023-09-13 04:13:27,003 INFO spawned: 'trace-peer' with pid 970447 2023-09-13 04:13:33,101 INFO success: trace-peer entered RUNNING state, process has stayed up for > than 6 seconds (startsecs)
`