mirror of
https://github.com/borgbackup/borg.git
synced 2026-02-19 02:29:19 -05:00
Previously when running borg in a systemd service (and similar when piping to a file and co.), these problems occurred: - The carriage return both made it so that journald interpreted the output as binary, therefore not printing the text, while also not buffering correctly, so that log output was only available every once in a while in the form [40k blob data]. This can partially be worked around by using `journalctl -a` to view the logs, which at least prints the text, though only sporadically. - The path was getting truncated to a short length, since the default get_terminal_size returns a column width of 80, which isn't relevant when printing to e.g. journald. This commit fixes this by introducing a new code path for when stream is not a tty, which always prints the full paths and ends lines with a linefeed. This is based on unfinished PR #8939 by @infinisil, thanks for your suggestion! Forward port of PR #9055 to master. |
||
|---|---|---|
| .. | ||
| archiver | ||
| chunkers | ||
| crypto | ||
| helpers | ||
| platform | ||
| testsuite | ||
| __init__.py | ||
| __main__.py | ||
| _item.c | ||
| archive.py | ||
| cache.py | ||
| checksums.pyi | ||
| checksums.pyx | ||
| compress.pyi | ||
| compress.pyx | ||
| conftest.py | ||
| constants.py | ||
| fslocking.py | ||
| fuse.py | ||
| fuse_impl.py | ||
| hashindex.pyi | ||
| hashindex.pyx | ||
| item.pyi | ||
| item.pyx | ||
| legacyremote.py | ||
| legacyrepository.py | ||
| logger.py | ||
| manifest.py | ||
| paperkey.html | ||
| patterns.py | ||
| platformflags.py | ||
| remote.py | ||
| repoobj.py | ||
| repository.py | ||
| selftest.py | ||
| storelocking.py | ||
| upgrade.py | ||
| version.py | ||
| xattr.py | ||