Adjust logs

This commit is contained in:
Oskar Thoren 2020-06-02 11:18:21 +08:00
parent c1823c3c68
commit bcaaf7056f
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
3 changed files with 9 additions and 4 deletions

View File

@ -48,7 +48,7 @@ task wakusim, "Build Waku simulation tools":
buildBinary "start_network", "waku/node/v1/", "-d:chronicles_log_level=DEBUG" buildBinary "start_network", "waku/node/v1/", "-d:chronicles_log_level=DEBUG"
task protocol2, "Build the experimental Waku protocol": task protocol2, "Build the experimental Waku protocol":
buildBinary "waku_protocol", "waku/protocol/v2/", "-d:chronicles_log_level=DEBUG" buildBinary "waku_protocol", "waku/protocol/v2/", "-d:chronicles_log_level=TRACE"
task wakutest2, "Build Experimental Waku tests": task wakutest2, "Build Experimental Waku tests":
let name = "v2/test_waku" let name = "v2/test_waku"
@ -56,8 +56,8 @@ task wakutest2, "Build Experimental Waku tests":
exec "build/" & name exec "build/" & name
task wakunode2, "Build Experimental Waku cli": task wakunode2, "Build Experimental Waku cli":
buildBinary "wakunode", "waku/node/v2/", "-d:chronicles_log_level=DEBUG" buildBinary "wakunode", "waku/node/v2/", "-d:chronicles_log_level=TRACE"
task wakusim2, "Build Experimental Waku simulation tools": task wakusim2, "Build Experimental Waku simulation tools":
buildBinary "quicksim", "waku/node/v2/", "-d:chronicles_log_level=DEBUG" buildBinary "quicksim", "waku/node/v2/", "-d:chronicles_log_level=DEBUG"
buildBinary "start_network", "waku/node/v2/", "-d:chronicles_log_level=DEBUG" buildBinary "start_network", "waku/node/v2/", "-d:chronicles_log_level=TRACE"

5
waku/node/v2/nim.cfg Normal file
View File

@ -0,0 +1,5 @@
-d:chronicles_line_numbers
-d:"chronicles_runtime_filtering=on"
-d:nimDebugDlOpen
# Results in empty output for some reason
#-d:"chronicles_enabled_topics=GossipSub:TRACE,WakuSub:TRACE"

View File

@ -9,7 +9,7 @@ import
import strutils except fromHex import strutils except fromHex
const const
defaults ="--log-level:DEBUG --log-metrics --metrics-server --rpc" defaults ="--log-level:TRACE --log-metrics --metrics-server --rpc"
wakuNodeBin = "build" / "wakunode" wakuNodeBin = "build" / "wakunode"
portOffset = 2 portOffset = 2