]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
debuginfod: Include "IPv4 IPv6" in server startup message
authorAaron Merey <amerey@redhat.com>
Wed, 6 Apr 2022 17:38:04 +0000 (13:38 -0400)
committerAaron Merey <amerey@redhat.com>
Wed, 6 Apr 2022 17:38:04 +0000 (13:38 -0400)
At startup debuginfod prints a message indicating the port which the
server is listening to.  Prior to commit 4e4082be03 this message would
include "IPv4" and/or "IPv6"

    [...] (48671/48671): started http server on IPv4 IPv6 port=8002

As of commit 4e4082be03 the IP versions have been removed from this
message.  This change can cause issues in any applications that
parse the message for this information.  Fix this by adding
"IPv4 IPv6" back to the message.

Signed-off-by: Aaron Merey <amerey@redhat.com>
debuginfod/debuginfod.cxx

index 054ae07a40cf4ecd68428de1093e8340b7153742..9c0217f6d3cbd2d9c597a5c1610564bb56a3427f 100644 (file)
@@ -3929,7 +3929,7 @@ main (int argc, char *argv[])
       error (EXIT_FAILURE, 0, "cannot start http server at port %d", http_port);
     }
 
-  obatched(clog) << "started http server on "
+  obatched(clog) << "started http server on IPv4 IPv6 "
                  << "port=" << http_port << endl;
 
   // add maxigroom sql if -G given