mirror of
https://github.com/restic/rest-server.git
synced 2026-04-06 10:12:09 -07:00
Make changelog less technical
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
Feature: Allows "-" as filename for the `--log` option.
|
Feature: Log to stdout using the `--log -` option
|
||||||
|
|
||||||
When (e.g. for debugging purpose) the rest server is invoked like
|
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
|
`sudo -u restic rest-server [...] --log /dev/stdout`
|
||||||
|
|
||||||
it tries to open `/dev/stdout` (O_CREATE, O_WRITE, O_APPEND). This
|
this did not work due to permission issues.
|
||||||
operation fails, as in the above invocation, `/dev/stdout` is owned by
|
|
||||||
the caller (here: root) and only writable for the caller. Subprocesses
|
For logging to stdout, the `--log` option now supports the special
|
||||||
get just the filedescriptor. Using `/proc/self/fd/1` didn't work either,
|
filename `-` which also works in these cases.
|
||||||
for the same reasons.
|
|
||||||
|
|
||||||
https://github.com/restic/rest-server/pull/217
|
https://github.com/restic/rest-server/pull/217
|
||||||
|
|||||||
Reference in New Issue
Block a user