From 756ef1fa605af7bc579ad61755c5b021bff6633f Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 19 Jun 2023 17:12:37 +0200 Subject: [PATCH] journal-remote: make MHD_OPTION_EXTERNAL_LOGGER the first option To suppress a warning on journal-remote startup: systemd-journal-remote[691]: microhttpd: MHD_OPTION_EXTERNAL_LOGGER is not the first option specified for the daemon. Some messages may be printed by the standard MHD logger. --- src/journal-remote/journal-remote-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c index 2d01e6013e..2755f55812 100644 --- a/src/journal-remote/journal-remote-main.c +++ b/src/journal-remote/journal-remote-main.c @@ -369,8 +369,8 @@ static int setup_microhttpd_server(RemoteServer *s, const char *cert, const char *trust) { struct MHD_OptionItem opts[] = { - { MHD_OPTION_NOTIFY_COMPLETED, (intptr_t) request_meta_free}, { MHD_OPTION_EXTERNAL_LOGGER, (intptr_t) microhttpd_logger}, + { MHD_OPTION_NOTIFY_COMPLETED, (intptr_t) request_meta_free}, { MHD_OPTION_LISTEN_SOCKET, fd}, { MHD_OPTION_CONNECTION_MEMORY_LIMIT, 128*1024}, { MHD_OPTION_END},