Skip to content

Logging Change Suggestion #9659

@quietquark

Description

@quietquark

Borg 1.4.x has some rather verbose logging when rebuilding/synchronizing the cache. Currently these logs are logged at the INFO level (and they result in one line per archive). On repositories with a large archive count, they result in unecessary log flooding.

It seems more appropriate to log these specific lines at the DEBUG level instead of INFO.

The lines/logs in question are:

https://github.com/borgbackup/borg/blob/1.4-maint/src/borg/cache.py#L872
https://github.com/borgbackup/borg/blob/1.4-maint/src/borg/cache.py#L875
https://github.com/borgbackup/borg/blob/1.4-maint/src/borg/cache.py#L879

The above lines can be logged at the DEBUG level to reduce some noisy logs.

Without these logs (at INFO), the logs become much more readable:

Synchronizing chunks cache...
Archives: %d, w/ cached Idx: %d, w/ outdated Idx: %d, w/o cached Idx: %d.
Done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions