From cb2ee2dc50ae2f15022db38214bd820dbea93aaa Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 13 Feb 2015 11:37:17 +0100 Subject: [PATCH] keyserver: Show log prefix when not build with cURL. * keyserver/ksutil.c (init_ks_options) [!HAVE_LIBCURL]: Set logging prefix. Signed-off-by: Werner Koch --- keyserver/ksutil.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/keyserver/ksutil.c b/keyserver/ksutil.c index 7231d0a0a..0ba09cd12 100644 --- a/keyserver/ksutil.c +++ b/keyserver/ksutil.c @@ -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)