mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-21 16:48:29 +00:00
chore: update logging
This commit is contained in:
parent
4554eeab91
commit
692081e2be
@ -37,6 +37,7 @@ export class FilterCore extends BaseProtocol implements IBaseProtocolCore {
|
||||
wakuMessage: WakuMessage,
|
||||
peerIdStr: string
|
||||
) => Promise<void>,
|
||||
private handleError: (error: Error) => Promise<void>,
|
||||
public readonly pubsubTopics: PubsubTopic[],
|
||||
libp2p: Libp2p
|
||||
) {
|
||||
@ -301,8 +302,18 @@ export class FilterCore extends BaseProtocol implements IBaseProtocolCore {
|
||||
() => {
|
||||
log.info("Receiving pipe closed.");
|
||||
},
|
||||
(e) => {
|
||||
log.error("Error with receiving pipe", e);
|
||||
async (e) => {
|
||||
log.error(
|
||||
"Error with receiving pipe",
|
||||
e,
|
||||
" -- ",
|
||||
"on peer ",
|
||||
connection.remotePeer.toString(),
|
||||
" -- ",
|
||||
"stream ",
|
||||
stream
|
||||
);
|
||||
await this.handleError(e);
|
||||
}
|
||||
);
|
||||
} catch (e) {
|
||||
|
@ -54,6 +54,9 @@ class Filter extends BaseProtocolSDK implements IFilter {
|
||||
|
||||
await subscription.processIncomingMessage(wakuMessage, peerIdStr);
|
||||
},
|
||||
async (error: Error) => {
|
||||
log.error("Error with receiving pipe", error);
|
||||
},
|
||||
connectionManager.configuredPubsubTopics,
|
||||
libp2p
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user