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 <wk@gnupg.org>
This commit is contained in:
Werner Koch 2015-02-13 11:37:17 +01:00
parent 3627123dc8
commit cb2ee2dc50
1 changed files with 6 additions and 0 deletions

View 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)