diff --git a/library/utils.c b/library/utils.c index c0889a52..0409c28d 100644 --- a/library/utils.c +++ b/library/utils.c @@ -321,7 +321,11 @@ static const char *basename(const char *path) { } void ziti_logger(int level, const char *module, const char *file, unsigned int line, const char *func, FORMAT_STRING(const char *fmt), ...) { +#ifdef ZITI_DEBUG + static size_t loglinelen = 32768; +#else static size_t loglinelen = 1024; +#endif log_writer logfunc = logger; if (logfunc == NULL) { return; } diff --git a/library/ziti_ctrl.c b/library/ziti_ctrl.c index c5216f59..3baa754a 100644 --- a/library/ziti_ctrl.c +++ b/library/ziti_ctrl.c @@ -430,6 +430,7 @@ static void ctrl_body_cb(tlsuv_http_req_t *req, char *b, ssize_t len) { if (len > 0) { if (resp->resp_content == ctrl_content_json) { if (resp->content == NULL) { + CTRL_LOG(VERBOSE, "HTTP RESPONSE: %.*s", (int)len, b); resp->content = json_tokener_parse_ex(resp->content_proc, b, (int) len); if (resp->content == NULL && json_tokener_get_error(resp->content_proc) != json_tokener_continue) { CTRL_LOG(WARN, "parsing error: %s",