Subject: | json patch for statistics channel warning |
Date: | Wed, 14 May 2014 14:54:51 -0500 (CDT) |
To: | bind9-bugs@isc.org |
From: | "Jeremy C. Reed" <jreed@isc.org> |
14-May-2014 19:48:16.642 statistics-channels specified but not effective
due to missing XML library
14-May-2014 19:48:16.643 statistics channel listening on 127.0.0.1#8080
I am using:
$ grep JSON ../../config.h
#define HAVE_JSON 1
Okay to commit the following?
+++ b/bin/named/statschannel.c
@@ -2353,11 +2353,11 @@ ns_statschannels_configure(ns_server_t *server,
const cfg_obj_t *config,
* address-in-use error.
*/
if (statschannellist != NULL) {
-#ifndef HAVE_LIBXML2
+#if !defined(HAVE_LIBXML2) && !defined(HAVE_JSON)
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
NS_LOGMODULE_SERVER, ISC_LOG_WARNING,
"statistics-channels specified but not effective "
- "due to missing XML library");
+ "due to missing XML or JSON library");
#endif
Jeremy C. Reed
ISC