Skip to content

Commit 1e799a2

Browse files
committed
Update core.h
1 parent 4eca903 commit 1e799a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/core.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,14 @@ class Core : public Http {
247247
}
248248

249249
if (http.available()) {
250+
FB_LOG("new tick response");
250251
_poll_wait = 0;
251252
Result res = _parseResponse(http.getResponse());
252253
if (res && res.isArray()) {
253254
_parseUpdates(res);
254255
return 1;
256+
} else {
257+
FB_LOG("tick parse error");
255258
}
256259
}
257260
return 0;
@@ -437,6 +440,8 @@ class Core : public Http {
437440
}
438441
if (res.isObject()) _parseResult(res);
439442
} else {
443+
FB_LOG("parse error");
444+
FB_LOG(res.getRaw());
440445
if (_cbErr && res._parser[tg_apih::ok]) _cbErr(res._parser[tg_apih::description]);
441446
}
442447
return res;

0 commit comments

Comments
 (0)