mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-07 16:23:09 +00:00
fix: use debug instead of console.log
This commit is contained in:
parent
ecb5b490e3
commit
28f77ec083
@ -227,7 +227,7 @@ export class WakuStore {
|
|||||||
|
|
||||||
if (!response.messages || !response.messages.length) {
|
if (!response.messages || !response.messages.length) {
|
||||||
// No messages left (or stored)
|
// No messages left (or stored)
|
||||||
console.log("No messages present in HistoryRPC response");
|
dbg("No message returned from store: `messages` array empty");
|
||||||
return messages;
|
return messages;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -265,8 +265,8 @@ export class WakuStore {
|
|||||||
cursor = response.pagingInfo?.cursor;
|
cursor = response.pagingInfo?.cursor;
|
||||||
if (cursor === undefined) {
|
if (cursor === undefined) {
|
||||||
// If the server does not return cursor then there is an issue,
|
// If the server does not return cursor then there is an issue,
|
||||||
// Need to abort or we end up in an infinite loop
|
// Need to abort, or we end up in an infinite loop
|
||||||
console.log("No cursor returned by peer.");
|
dbg("Store response does not contain a cursor, stopping pagination");
|
||||||
return messages;
|
return messages;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user