#242 list command with archive parameter writes all content of the archive to syslog as WARNING

Open
opened 1 month ago by hdogan · 1 comments
hdogan commented 1 month ago

What I’m trying to do and why

Steps to reproduce (if a bug)

borgmatic list --archive <archive name>

Actual behavior (if a bug)

All output (content of archive) also written to syslog, each line marked as WARNING.

Expected behavior (if a bug)

It should only list content to stdout.

Other notes / implementation ideas

None

Environment

borgmatic version: 1.4.8

borgmatic installation method: pip3

Borg version: 1.1.10

Python version: 3.6.8

operating system and version: Ubuntu 18.04LTS

#### What I'm trying to do and why #### Steps to reproduce (if a bug) `borgmatic list --archive <archive name>` #### Actual behavior (if a bug) All output (content of archive) *also* written to syslog, each line marked as *WARNING*. #### Expected behavior (if a bug) It should only list content to stdout. #### Other notes / implementation ideas None #### Environment **borgmatic version:** 1.4.8 **borgmatic installation method:** pip3 **Borg version:** 1.1.10 **Python version:** 3.6.8 **operating system and version:** Ubuntu 18.04LTS
witten commented 1 month ago
Owner

Thank you for filing this! I’m looking at the code that decides whether to log to syslog, and it skips syslog logging if the console is interactive. The idea is to support exactly what you’re doing: borgmatic list at the interactive console without mucking up syslog. So a question for you: Are you running borgmatic list interactively, or are you running it some other way like in a cron job? If the latter, then what are you using it for there?

It’s also possible that the interactive console detection is just broken in certain cases.

Thank you for filing this! I'm looking at the code that decides whether to log to syslog, and it skips syslog logging if the console is interactive. The idea is to support exactly what you're doing: `borgmatic list` at the interactive console without mucking up syslog. So a question for you: Are you running `borgmatic list` interactively, or are you running it some other way like in a cron job? If the latter, then what are you using it for there? It's also possible that the interactive console detection is just broken in certain cases.
witten added the
waiting for response
label 3 weeks ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.