--syslog-verbosity setting not doing anything #286

Closed
opened 2020-01-23 07:41:52 +00:00 by aardbol · 4 comments

As discussed in issue #277, the --syslog-verbosity argument doesn't output anything to the journal.

This question was asked:

Are you perhaps using --log-file as well? Doing so disables syslog logging

The answer to that is no because I'm using the systemd unit as is provided.

As discussed in issue #277, the --syslog-verbosity argument doesn't output anything to the journal. This question was asked: `Are you perhaps using --log-file as well? Doing so disables syslog logging` The answer to that is no because I'm using the systemd unit as is provided.
Contributor

For me syslog works fine (Solus Linux), just with the --syslog-verbosity 1 option. It is wither started as systemd service or with sudo.

I can see the log with journalctl -t borgmatic.

For me syslog works fine (Solus Linux), just with the `--syslog-verbosity 1` option. It is wither started as systemd service or with `sudo`. I can see the log with `journalctl -t borgmatic`.
Owner

Yeah, I'm still not sure why this might be happening. @aardbol, can I get a look at your borgmatic command-line flags? The full output of a run with --verbosity 2 may be helpful as well.

I'm looking at the logging code, and there are currently three situations I see in which syslog doesn't get logged to:

  1. --log-file is given on the command-line.
  2. It's being run from an interactive console.
  3. Neither /dev/log nor /var/run/syslog exist.

Sounds like we can eliminate number 1. And number 2 as well, based on what you mentioned in witten/borgmatic#277 about running borgmatic from a systemd service. For number 3, can you confirm that /dev/log or /var/run/syslog exist? Thanks!

Yeah, I'm still not sure why this might be happening. @aardbol, can I get a look at your borgmatic command-line flags? The full output of a run with `--verbosity 2` may be helpful as well. I'm looking at the logging code, and there are currently three situations I see in which syslog doesn't get logged to: 1. `--log-file` is given on the command-line. 2. It's being run from an interactive console. 3. Neither `/dev/log` nor `/var/run/syslog` exist. Sounds like we can eliminate number 1. And number 2 as well, based on what you mentioned in https://projects.torsion.org/witten/borgmatic/issues/277 about running borgmatic from a systemd service. For number 3, can you confirm that `/dev/log` or `/var/run/syslog` exist? Thanks!
Author

For some reason it works now. I tried journalctl -t borgmatic and all the logs showed up. Then I tried journalctl -g borgmatic (how I checked it before) and that also displays the logs.

Thanks for your help!

For some reason it works now. I tried `journalctl -t borgmatic` and all the logs showed up. Then I tried `journalctl -g borgmatic` (how I checked it before) and that also displays the logs. Thanks for your help!
Owner

Weird! Glad to hear it's working now.

Weird! Glad to hear it's working now.
Sign in to join this conversation.
No Milestone
No Assignees
3 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: borgmatic-collective/borgmatic#286
No description provided.