diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-03-13 21:07:45 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-03-13 23:42:16 -0400 |
commit | d357562c48ac71e2197ea63bc57671a29ba12cf6 (patch) | |
tree | 8e140514518ee711a591f83c13cb7d09bfe10684 /src/journal-remote/journal-gatewayd.c | |
parent | 1b14c3cfbe25f9bf1183bd26875f3c68847559c0 (diff) |
µhttp-util: setup gnutls logs in one function
Diffstat (limited to 'src/journal-remote/journal-gatewayd.c')
-rw-r--r-- | src/journal-remote/journal-gatewayd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c index 576f7cae7d..b4bc8ccf82 100644 --- a/src/journal-remote/journal-gatewayd.c +++ b/src/journal-remote/journal-gatewayd.c @@ -982,10 +982,9 @@ int main(int argc, char *argv[]) { sigbus_install(); -#ifdef HAVE_GNUTLS - gnutls_global_set_log_function(log_func_gnutls); - log_reset_gnutls_level(); -#endif + r = setup_gnutls_logger(NULL); + if (r < 0) + return EXIT_FAILURE; n = sd_listen_fds(1); if (n < 0) { |