Remove unicode byte order mark from syslog output. (Related to #197.)

This commit is contained in:
Dan Helfman 2019-06-27 10:03:49 -07:00
parent 4444219e17
commit 032d4adee3
3 changed files with 6 additions and 2 deletions

4
NEWS
View file

@ -1,3 +1,7 @@
1.3.12.dev0
* Remove unicode byte order mark from syslog output so it doesn't show up as a literal in rsyslog
output. See discussion on #197.
1.3.11
* #193: Pass through several "borg list" and "borg info" flags like --short, --format, --sort-by,
--first, --last, etc. via borgmatic command-line flags.

View file

@ -84,7 +84,7 @@ def configure_logging(console_log_level, syslog_log_level=None):
if syslog_path:
syslog_handler = logging.handlers.SysLogHandler(address=syslog_path)
syslog_handler.setFormatter(logging.Formatter('borgmatic: %(levelname)s \ufeff%(message)s'))
syslog_handler.setFormatter(logging.Formatter('borgmatic: %(levelname)s %(message)s'))
syslog_handler.setLevel(syslog_log_level)
handlers = (console_handler, syslog_handler)
else:

View file

@ -1,6 +1,6 @@
from setuptools import find_packages, setup
VERSION = '1.3.11'
VERSION = '1.3.12.dev0'
setup(