This repository was archived by the owner on Jan 6, 2026. It is now read-only.
Commit 2e47236
authored
fix: improve logs (#73)
Example output before my change:
```
Retrieval failed with status code 502: no candidates found
{
timeout: false,
startAt: 2024-05-31T07:30:43.389Z,
// etc.
protocol: "graphsync",
providerAddress: "/ip4/118.212.68.22/tcp/24501/p2p/12D3KooWJJEL214g7yMFMFaE6aPRaQTLVVCNFjWeiBLUCTzP98tp"
}
Submitting measurement...
{
sparkVersion: "1.11.4",
zinniaVersion: "0.19.1",
cid: "bafykbzacechhbxnsn5dw6lx7phcfvkjc6kqsuuwl4bnynexewb5y3vtcw2fvw",
minerId: "f02894875",
timeout: false,
startAt: 2024-05-31T07:30:43.389Z,
// etc.
providerAddress: "/ip4/118.212.68.22/tcp/24501/p2p/12D3KooWJJEL214g7yMFMFaE6aPRaQTLVVCNFjWeiBLUCTzP98tp",
participantAddress: "0x000000000000000000000000000000000000dEaD",
stationId: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
```
This commit removes the first log which was printed when `fetch()`
was able to get some HTTP response frome the server.
It is also removing the trailing newline from HTTP error response bodies
before we print them to the console.
Finally, it adds an empty line between tasks, to visually delimit
logs belonging to different tasks.1 parent c7fde0a commit 2e47236
4 files changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
| |||
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
0 commit comments