keyserver: Show log prefix when not build with cURL.
authorWerner Koch <wk@gnupg.org>
Fri, 13 Feb 2015 10:37:17 +0000 (11:37 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 13 Feb 2015 10:37:17 +0000 (11:37 +0100)
* keyserver/ksutil.c (init_ks_options) [!HAVE_LIBCURL]: Set logging
prefix.

Signed-off-by: Werner Koch <wk@gnupg.org>
keyserver/ksutil.c

index 7231d0a..0ba09cd 100644 (file)
@@ -112,6 +112,12 @@ init_ks_options(void)
 {
   struct ks_options *opt;
 
+#ifndef HAVE_LIBCURL
+  /* Without cURL we use our own HTTP module which uses our logging
+     subsystem.  Thus we need to init that.  */
+  log_set_prefix ("gpgkeys", JNLIB_LOG_WITH_PREFIX);
+#endif /*!HAVE_LIBCURL*/
+
   opt=calloc(1,sizeof(struct ks_options));
 
   if(opt)