mod_netconf: debug message on connection error
diff --git a/src/mod_netconf.c b/src/mod_netconf.c
index f3cedb0..627fb6d 100644
--- a/src/mod_netconf.c
+++ b/src/mod_netconf.c
@@ -921,10 +921,12 @@
if (err_reply == NULL) {
json_object_object_add(reply, "type", json_object_new_int(REPLY_ERROR));
json_object_object_add(reply, "error-message", json_object_new_string("Connecting NETCONF server failed."));
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, server, "Connection failed.");
} else {
/* use filled err_reply from libnetconf's callback */
json_object_put(reply);
reply = err_reply;
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, server, "Connect - error from libnetconf's callback.");
}
} else {
/* positive reply */