]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal-remote: make writer_new() return negative errno on failure
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Mar 2023 17:26:33 +0000 (02:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Mar 2023 17:26:33 +0000 (02:26 +0900)
commit4c3d2523a0ec8a075652d8b8a80787747576e03f
treea03bf0bfdfe05dbc3e193752d2faced343947ca4
parenta065dcd239e9219112ad131aa3cef060a666b377
journal-remote: make writer_new() return negative errno on failure

After f12b399dd6362a03379cb769954ebfb9972236ed, writer_new() may fail
with non-OOM error. Let's return the error cause, and logs the failure
in the caller side.

This also drops logs in journal_remote_get_writer(), adds its caller
typically logs the failure.
src/journal-remote/journal-remote-write.c
src/journal-remote/journal-remote-write.h
src/journal-remote/journal-remote.c