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