Merge pull request #217 from HeikoSchlittermann/feat-log-to-stdout

feat: allow logging to stdout, stderr
This commit is contained in:
Michael Eischer
2023-04-30 14:56:29 +02:00
committed by GitHub
3 changed files with 25 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
Feature: Log to stdout using the `--log -` option
Logging to stdout was possible using `--log /dev/stdout`. However,
when the rest server is run as a different user, for example, using
`sudo -u restic rest-server [...] --log /dev/stdout`
this did not work due to permission issues.
For logging to stdout, the `--log` option now supports the special
filename `-` which also works in these cases.
https://github.com/restic/rest-server/pull/217