Skip to content

Commit 7df4174

Browse files
authored
Add Kubo logs to the CI (#183)
* Add IPFS Kubo logs for Bitswap * Clean up
1 parent 00aa68c commit 7df4174

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

examples/common.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import fs from "fs";
55
import assert from "assert";
66

77
// ---- CONFIG ----
8-
export const WS_ENDPOINT = 'ws://127.0.0.1:10000'; // Bulletin node
9-
export const IPFS_API = 'http://127.0.0.1:5001'; // Local IPFS daemon
108
export const HTTP_IPFS_API = 'http://127.0.0.1:8080'; // Local IPFS HTTP gateway
119
export const CHUNK_SIZE = 1 * 1024 * 1024; // 1 MiB
1210
// -----------------

examples/justfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,12 @@ ipfs-start test_dir: _check-docker
234234
echo " Container: ipfs-node"
235235
echo " Waiting for container to start..."
236236
sleep 5
237-
237+
238+
# Bitswap logging
239+
docker logs -f ipfs-node > {{ test_dir }}/ipfs-node.log 2>&1 &
240+
docker exec ipfs-node ipfs log level bitswap debug
241+
docker exec ipfs-node ipfs log level bitswap/client debug
242+
238243
# Store container name in PID directory for cleanup
239244
echo "ipfs-node" > {{ test_dir }}/ipfs-docker.container
240245

zombienet/bulletin-polkadot-local.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ name = "alice"
1111
p2p_port = 10001
1212
rpc_port = 10000
1313
validator = true
14-
args = ["--ipfs-server", "-lruntime=trace,sub-libp2p::bitswap=trace,runtime::transaction-storage=trace"]
14+
args = ["--ipfs-server", "-lruntime=debug,sub-libp2p::bitswap=trace,runtime::transaction-storage=trace,litep2p::ipfs::bitswap=debug"]
1515

1616
[[relaychain.nodes]]
1717
name = "bob"
1818
p2p_port = 12347
1919
rpc_port = 12346
2020
validator = true
21-
args = ["-lruntime=trace,bitswap=trace,sub-libp2p::bitswap=trace,runtime::transaction-storage=trace"]
21+
args = ["-lruntime=debug,bitswap=trace,sub-libp2p::bitswap=trace,runtime::transaction-storage=trace,litep2p::ipfs::bitswap=debug"]

0 commit comments

Comments
 (0)