Wierd verbosity impact when using "--stats" option #1

Closed
opened 2019-11-01 19:46:17 +00:00 by palto42 · 1 comment
Owner

What I'm trying to do and why

When using borgmatic with the --statsoption and --verbosity 1 --syslog-verbosity 0, then the syslog includes all the file details as level "WARNING" and not only the "stats" as expected.

With --verbosity 0 --syslog-verbosity 0 both outputs are just containing the "stats".

Steps to reproduce (if a bug)

Run borgmatic in non-interactive session (e.g. cron) with the options --stats --verbosity 1 --syslog-verbosity 0 and check the syslog output

Actual behavior (if a bug)

Nov  1 20:35:01 cubitus CRON[15444]: (root) CMD (   /opt/borgmatic/bin/borgmatic --stats --syslog-verbosity 0 --verbosity 1)
Nov  1 20:35:09 cubitus borgmatic: WARNING ------------------------------------------------------------------------------
Nov  1 20:35:09 cubitus borgmatic: WARNING                        Original size      Compressed size    Deduplicated size
Nov  1 20:35:09 cubitus borgmatic: WARNING Deleted data:              -42.82 GB            -37.54 GB             -1.21 MB
Nov  1 20:35:09 cubitus borgmatic: WARNING All archives:              213.20 GB            187.26 GB             37.06 GB
Nov  1 20:35:09 cubitus borgmatic: WARNING                        Unique chunks         Total chunks
Nov  1 20:35:09 cubitus borgmatic: WARNING Chunk index:                  158415              1062633
Nov  1 20:35:09 cubitus borgmatic: WARNING ------------------------------------------------------------------------------
Nov  1 20:35:12 cubitus borgmatic: WARNING Creating archive at "user@server.my.domain:/backup/host/main::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}"
Nov  1 20:35:35 cubitus borgmatic: WARNING M /home/user/.config/nautilus/desktop-metadata
Nov  1 20:35:38 cubitus borgmatic: WARNING M /home/user/.config/Code/GPUCache/data_1
Nov  1 20:35:46 cubitus borgmatic: WARNING M /home/user/.local/share/gnome-shell/application_state
...

Expected behavior (if a bug)

No details about backed up files in the syslog output (only on stdout)

Other notes / implementation ideas

Environment

borgmatic version: 1.4.3

borgmatic installation method: Python venv & pip

Borg version: 1.1.10

Python version: 3.6.8

operating system and version: Ubuntu 18.0.4

#### What I'm trying to do and why When using borgmatic with the `--stats`option and `--verbosity 1 --syslog-verbosity 0`, then the syslog includes all the file details as level "WARNING" and not only the "stats" as expected. With `--verbosity 0 --syslog-verbosity 0` both outputs are just containing the "stats". #### Steps to reproduce (if a bug) Run borgmatic in non-interactive session (e.g. cron) with the options `--stats --verbosity 1 --syslog-verbosity 0` and check the syslog output #### Actual behavior (if a bug) ``` Nov 1 20:35:01 cubitus CRON[15444]: (root) CMD ( /opt/borgmatic/bin/borgmatic --stats --syslog-verbosity 0 --verbosity 1) Nov 1 20:35:09 cubitus borgmatic: WARNING ------------------------------------------------------------------------------ Nov 1 20:35:09 cubitus borgmatic: WARNING Original size Compressed size Deduplicated size Nov 1 20:35:09 cubitus borgmatic: WARNING Deleted data: -42.82 GB -37.54 GB -1.21 MB Nov 1 20:35:09 cubitus borgmatic: WARNING All archives: 213.20 GB 187.26 GB 37.06 GB Nov 1 20:35:09 cubitus borgmatic: WARNING Unique chunks Total chunks Nov 1 20:35:09 cubitus borgmatic: WARNING Chunk index: 158415 1062633 Nov 1 20:35:09 cubitus borgmatic: WARNING ------------------------------------------------------------------------------ Nov 1 20:35:12 cubitus borgmatic: WARNING Creating archive at "user@server.my.domain:/backup/host/main::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}" Nov 1 20:35:35 cubitus borgmatic: WARNING M /home/user/.config/nautilus/desktop-metadata Nov 1 20:35:38 cubitus borgmatic: WARNING M /home/user/.config/Code/GPUCache/data_1 Nov 1 20:35:46 cubitus borgmatic: WARNING M /home/user/.local/share/gnome-shell/application_state ... ``` #### Expected behavior (if a bug) No details about backed up files in the syslog output (only on stdout) #### Other notes / implementation ideas #### Environment **borgmatic version:** 1.4.3 **borgmatic installation method:** Python venv & pip **Borg version:** 1.1.10 **Python version:** 3.6.8 **operating system and version:** Ubuntu 18.0.4
palto42 added the
bug
label 2019-11-02 17:08:54 +00:00
Author
Owner

expected behaviour

expected behaviour
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: palto42/borgmatic#1
No description provided.