Skip to content

Commit 82ba4b1

Browse files
committed
fix json for traces
1 parent 3943242 commit 82ba4b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/meshcore_cli/meshcore_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,14 +1710,14 @@ async def next_cmd(mc, cmds, json_output=False):
17101710
print("Timeout waiting trace")
17111711
elif ev.type == EventType.ERROR:
17121712
if json_output:
1713-
print(ev.payload)
1713+
print(json.dumps(ev.payload))
17141714
else :
17151715
print("Error waiting trace")
17161716
else:
17171717
if json_output:
1718-
print(ev.payload)
1718+
print(json.dumps(ev.payload, indent=2))
17191719
else :
1720-
print("Self]",end="")
1720+
print("]",end="")
17211721
for t in ev.payload["path"]:
17221722
print("→",end="")
17231723
snr = t['snr']
@@ -1732,7 +1732,7 @@ async def next_cmd(mc, cmds, json_output=False):
17321732
if "hash" in t:
17331733
print(f"[{t['hash']}]",end="")
17341734
else:
1735-
print("[Self")
1735+
print("[")
17361736

17371737
case "login" | "l" :
17381738
argnum = 2

0 commit comments

Comments
 (0)