go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

Log file size appears not changed after cat /dev/null to log files

Open charmfocus opened this issue 1 year ago • 1 comments

删除项目日志文件 cat /dev/null > access.log 后,查看access.log文件大小依然是原来大小,但du -hd1查看当前目录确实已经变小了 然而先del access.log后,再restart服务,access.log就正常了 希望能支持linux下可手工清理log

charmfocus avatar May 20 '24 14:05 charmfocus

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 29 '25 02:05 github-actions[bot]