From de94001508c7172fa52129f52129d6c2e0b404a7 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sun, 16 Jun 2019 21:57:14 -0700 Subject: [PATCH] Change default syslog verbosity to show errors only. --- NEWS | 1 + borgmatic/commands/borgmatic.py | 2 +- docs/how-to/inspect-your-backups.md | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index dd9c7a1..820239b 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ 1.3.7.dev0 * #196: Fix for unclear error message for invalid YAML merge include. + * Change default syslog verbosity to show errors only. 1.3.6 * #53: Log to syslog in addition to existing console logging. Add --syslog-verbosity flag to diff --git a/borgmatic/commands/borgmatic.py b/borgmatic/commands/borgmatic.py index 0b90b75..25ed2c3 100644 --- a/borgmatic/commands/borgmatic.py +++ b/borgmatic/commands/borgmatic.py @@ -182,7 +182,7 @@ def parse_arguments(*arguments): '--syslog-verbosity', type=int, choices=range(0, 3), - default=1, + default=0, help='Display verbose progress to syslog (from none to lots: 0, 1, or 2)', ) common_group.add_argument( diff --git a/docs/how-to/inspect-your-backups.md b/docs/how-to/inspect-your-backups.md index c8774a6..130aa1e 100644 --- a/docs/how-to/inspect-your-backups.md +++ b/docs/how-to/inspect-your-backups.md @@ -42,11 +42,11 @@ using systemd, try running `journalctl -xe`. Otherwise, try viewing You can customize the log level used for syslog logging with the `--syslog-verbosity` flag, and this is independent from the console logging -`--verbosity` flag described above. For instance, to disable syslog logging -except for errors: +`--verbosity` flag described above. For instance, to get additional +information about the progress of the backup as it proceeds: ```bash -borgmatic --syslog-verbosity 0 +borgmatic --syslog-verbosity 1 ``` Or to increase syslog logging to include debug spew: