"ANSWER:borgmatic.execute:" prefix in cron output #863
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
I run my backup via cronjob and use the following command: borgmatic --stats -c /etc/borgmatic/config.yaml
I send myself the output of the command by e-mail. In the current version of borgmatic "ANSWER:borgmatic.execute:" is added as a prefix to each line in this output.
The only reference to this issue I could find here: #835 (comment)
I added "-nc" to the command and/or "color: false" to the configuration without any change in behavior.
Steps to reproduce
No response
Actual behavior
No response
Expected behavior
No response
Other notes / implementation ideas
No response
borgmatic version
1.8.11
borgmatic installation method
pip
Borg version
1.2.8
Python version
3.9.2
Database version (if applicable)
No response
Operating system and version
Debian 11
Thanks for bringing this to my attention! This change has been implemented in main and will be part of the next release!
(What was going on is that when color output was disabled, borgmatic was defaulting to Python's default log formatter, which apparently prefixes each log entry with the log level among other things. Now, the default formatter is no longer used.)
Released in borgmatic 1.8.12!