Skip to content

Rotating files will break the follow method #1

@maxcountryman

Description

@maxcountryman

Just so you're aware, due to the way Python's file handler works, an open file which is rotated will break your follow loop. I had this problem in an application I wrote recently. As far as I know, there's no simple fix for it. In fact I had to do some nasty hacking which involved triggering a SIGHUP and catching it in the application then handling the reloading of the file. If you're curious check out logmon: https://github.com/maxcountryman/logmon (see the bottom of the README).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions