Skip to content

Commit

Permalink
tmplog
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Aug 22, 2024
1 parent ee3a6ee commit b236605
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/warnet/cli/bitcoin.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def grep_logs(pattern: str, show_k8s_timestamps: bool, no_sort: bool):
# Get logs from the specific container
command = f"kubectl logs {pod_name} -c {container_name} --timestamps"
logs = run_command(command)

if logs is not False:
# Process logs
for log_entry in logs.splitlines():
Expand Down
1 change: 1 addition & 0 deletions test/rpc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def test_transaction_propagation(self):
assert txid in node_log, "Transaction ID not found in node log"

all_logs = self.warcli(f"bitcoin grep-logs {txid}")
print(all_logs)
count = all_logs.count("Enqueuing TransactionAddedToMempool")
assert count > 1, f"Transaction not propagated to enough nodes (count: {count})"

Expand Down

0 comments on commit b236605

Please sign in to comment.