mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-24 03:10:03 +00:00
logs
This commit is contained in:
parent
0024e938fa
commit
3e2ca5dcba
@ -91,7 +91,7 @@ proc sendRequestToWakuThread*(
|
|||||||
|
|
||||||
echo "------------------- sendRequestToWakuThread 2"
|
echo "------------------- sendRequestToWakuThread 2"
|
||||||
let req = WakuThreadRequest.createShared(reqType, reqContent, callback, userData)
|
let req = WakuThreadRequest.createShared(reqType, reqContent, callback, userData)
|
||||||
echo "------------------- sendRequestToWakuThread 3"
|
echo "------------------- sendRequestToWakuThread 3: " & $req[]
|
||||||
## Sending the request
|
## Sending the request
|
||||||
let sentOk = ctx.reqChannel.trySend(req)
|
let sentOk = ctx.reqChannel.trySend(req)
|
||||||
if not sentOk:
|
if not sentOk:
|
||||||
|
|||||||
@ -46,17 +46,23 @@ proc process*(
|
|||||||
|
|
||||||
case self.operation
|
case self.operation
|
||||||
of RETRIEVE_LISTENING_ADDRESSES:
|
of RETRIEVE_LISTENING_ADDRESSES:
|
||||||
|
echo "---------- DEBUG: RETRIEVE_LISTENING_ADDRESSES"
|
||||||
## returns a comma-separated string of the listen addresses
|
## returns a comma-separated string of the listen addresses
|
||||||
return ok(waku.node.getMultiaddresses().join(","))
|
return ok(waku.node.getMultiaddresses().join(","))
|
||||||
of RETRIEVE_MY_ENR:
|
of RETRIEVE_MY_ENR:
|
||||||
|
echo "---------- DEBUG: RETRIEVE_MY_ENR"
|
||||||
return ok(waku.node.enr.toURI())
|
return ok(waku.node.enr.toURI())
|
||||||
of RETRIEVE_MY_PEER_ID:
|
of RETRIEVE_MY_PEER_ID:
|
||||||
|
echo "---------- DEBUG: RETRIEVE_MY_PEER_ID"
|
||||||
return ok($waku.node.peerId())
|
return ok($waku.node.peerId())
|
||||||
of RETRIEVE_METRICS:
|
of RETRIEVE_METRICS:
|
||||||
|
echo "---------- DEBUG: RETRIEVE_METRICS"
|
||||||
return ok(getMetrics())
|
return ok(getMetrics())
|
||||||
of RETRIEVE_ONLINE_STATE:
|
of RETRIEVE_ONLINE_STATE:
|
||||||
|
echo "---------- DEBUG: RETRIEVE_ONLINE_STATE"
|
||||||
return ok($waku.healthMonitor.onlineMonitor.amIOnline())
|
return ok($waku.healthMonitor.onlineMonitor.amIOnline())
|
||||||
of CHECK_WAKU_NOT_BLOCKED:
|
of CHECK_WAKU_NOT_BLOCKED:
|
||||||
|
echo "---------- DEBUG: CHECK_WAKU_NOT_BLOCKED"
|
||||||
return ok("waku thread is not blocked")
|
return ok("waku thread is not blocked")
|
||||||
|
|
||||||
error "unsupported operation in DebugNodeRequest"
|
error "unsupported operation in DebugNodeRequest"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user