Skip to content

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

Open
@charmfocus

Description

@charmfocus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/logsCategorizes issue or PR as related to logs.featureMarks an issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions