]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-gatewayd: make MHD_OPTION_EXTERNAL_LOGGER the first option
authorFrantisek Sumsal <fsumsal@redhat.com>
Fri, 16 Jun 2023 15:03:27 +0000 (17:03 +0200)
committerFrantisek Sumsal <fsumsal@redhat.com>
Fri, 16 Jun 2023 15:03:27 +0000 (17:03 +0200)
To get rid of the warning on gatewayd startup:
    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-gatewayd.c

index 4b4eec01855c66e84ad1857ead6568bc54246033..f9bff4fb97106de83074cecd1416f027bcc5f287 100644 (file)
@@ -1005,10 +1005,10 @@ static int parse_argv(int argc, char *argv[]) {
 static int run(int argc, char *argv[]) {
         _cleanup_(MHD_stop_daemonp) struct MHD_Daemon *d = NULL;
         struct MHD_OptionItem opts[] = {
-                { MHD_OPTION_NOTIFY_COMPLETED,
-                  (intptr_t) request_meta_free, NULL },
                 { MHD_OPTION_EXTERNAL_LOGGER,
                   (intptr_t) microhttpd_logger, NULL },
+                { MHD_OPTION_NOTIFY_COMPLETED,
+                  (intptr_t) request_meta_free, NULL },
                 { MHD_OPTION_END, 0, NULL },
                 { MHD_OPTION_END, 0, NULL },
                 { MHD_OPTION_END, 0, NULL },