mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-04-22 16:13:17 +00:00
fix log libwaku (#3608)
* libwaku properly set a default log config * waku_example.c set numShardsInNetwork to 257
This commit is contained in:
parent
7819a6e09a
commit
d94cb7c736
@ -298,6 +298,7 @@ int main(int argc, char** argv) {
|
|||||||
snprintf(jsonConfig, 5000, "{ \
|
snprintf(jsonConfig, 5000, "{ \
|
||||||
\"clusterId\": 16, \
|
\"clusterId\": 16, \
|
||||||
\"shards\": [ 1, 32, 64, 128, 256 ], \
|
\"shards\": [ 1, 32, 64, 128, 256 ], \
|
||||||
|
\"numShardsInNetwork\": 257, \
|
||||||
\"listenAddress\": \"%s\", \
|
\"listenAddress\": \"%s\", \
|
||||||
\"tcpPort\": %d, \
|
\"tcpPort\": %d, \
|
||||||
\"relay\": %s, \
|
\"relay\": %s, \
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
import std/[options, atomics, os, net, locks]
|
import std/[options, atomics, os, net, locks]
|
||||||
import chronicles, chronos, chronos/threadsync, taskpools/channels_spsc_single, results
|
import chronicles, chronos, chronos/threadsync, taskpools/channels_spsc_single, results
|
||||||
import
|
import
|
||||||
|
waku/common/logging,
|
||||||
waku/factory/waku,
|
waku/factory/waku,
|
||||||
waku/node/peer_manager,
|
waku/node/peer_manager,
|
||||||
waku/waku_relay/[protocol, topic_health],
|
waku/waku_relay/[protocol, topic_health],
|
||||||
@ -155,6 +156,8 @@ proc watchdogThreadBody(ctx: ptr WakuContext) {.thread.} =
|
|||||||
proc wakuThreadBody(ctx: ptr WakuContext) {.thread.} =
|
proc wakuThreadBody(ctx: ptr WakuContext) {.thread.} =
|
||||||
## Waku thread that attends library user requests (stop, connect_to, etc.)
|
## Waku thread that attends library user requests (stop, connect_to, etc.)
|
||||||
|
|
||||||
|
logging.setupLog(logging.LogLevel.DEBUG, logging.LogFormat.TEXT)
|
||||||
|
|
||||||
let wakuRun = proc(ctx: ptr WakuContext) {.async.} =
|
let wakuRun = proc(ctx: ptr WakuContext) {.async.} =
|
||||||
var waku: Waku
|
var waku: Waku
|
||||||
while true:
|
while true:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user