]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-remote: add missing log message for failure in journal_remote_get_writer()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Mar 2023 17:28:04 +0000 (02:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Mar 2023 17:28:04 +0000 (02:28 +0900)
src/journal-remote/journal-remote-main.c

index 956c96c5e34e73e6199d254b68cde0a7cc8781d0..2cc7428e78810c41f7f9b1ff69ce11da3378a8ec 100644 (file)
@@ -734,7 +734,7 @@ static int create_remoteserver(
                    create output as expected. */
                 r = journal_remote_get_writer(s, NULL, &s->_single_writer);
                 if (r < 0)
-                        return r;
+                        return log_warning_errno(r, "Failed to get writer: %m");
         }
 
         return 0;