Skip to content

Commit 32cf08f

Browse files
committed
recon: show how to enable logs
1 parent b439ad2 commit 32cf08f

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
@@ -39,12 +39,17 @@ def set_test_params(self):
3939

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

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

0 commit comments

Comments
 (0)