X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss_ws.c;h=1d5269642938368278c050e3390e74e7f449cb3e;hp=0aed58d9d4b62984383697e103730c6c300b619c;hb=a73efdf40d482a83aa23d793c3906e2e1802013b;hpb=c6e1efc5d14895adeddd08dca19a954efa6fabdc diff --git a/src/ttrss_ws.c b/src/ttrss_ws.c index 0aed58d..1d52696 100644 --- a/src/ttrss_ws.c +++ b/src/ttrss_ws.c @@ -103,6 +103,8 @@ static const char *ws_reply_get_error(struct json_object *content) { struct json_object *jerror; + log_debug("ws_reply_get_error"); + if (json_object_get_type(content) != json_type_object) return NULL; @@ -131,6 +133,7 @@ execute(struct http_session *sess, struct json_object *rq, char **err) str = ws_reply_get_error(content); if (str) { + log_debug("execute() err=%s", str); *err = strdup(str); content = NULL; } else { @@ -141,6 +144,8 @@ execute(struct http_session *sess, struct json_object *rq, char **err) json_object_put(rp); } + log_debug("execute() done"); + return content; }