Skip to content

Unable to disable file logging #7153

@macladson

Description

@macladson

Since merging #6339, we can no longer disable the file logger.
Previously, setting either --logfile-max-size 0 or --logfile-max-number 0 would disable the file logger.

This is additionally problematic because having --logfile-max-size 0 will instead rotate the file every single log line. Users using --logfile-compress will have the additional issue of a race condition between the file getting compressed and it being rotated, and so will see hundreds of:

Couldn't compress log file: File IO error: No such file or directory (os error 2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions