Skip to content

Commit 7f88778

Browse files
committed
recon: show how to enable logs
1 parent e0773da commit 7f88778

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

resources/scenarios/reconnaissance.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,17 @@ def add_options(self, parser):
3838

3939
# Scenario entrypoint
4040
def run_test(self):
41+
# Demonstrate how to enable debug logs from a scenario
42+
# This could be any logs, or "all" for all logs
43+
self.log("Turning on mempool logging for node 0")
44+
self.nodes[0].logging(include=["mempool"])
45+
4146
self.log.info("Getting peer info")
4247

4348
# Just like a typical Bitcoin Core functional test, this executes an
4449
# RPC on a node in the network. The actual node at self.nodes[0] may
4550
# be different depending on the user deploying the scenario. Users in
46-
# Warnet may have different namepsace access but everyone should always
51+
# Warnet may have different namespace access but everyone should always
4752
# have access to at least one node.
4853
peerinfo = self.nodes[0].getpeerinfo()
4954
for peer in peerinfo:

0 commit comments

Comments
 (0)