Skip to content
Snippets Groups Projects
Unverified Commit 1a5db42c authored by Caleb Connolly's avatar Caleb Connolly :recycle:
Browse files

helpers: frontend: deviceinfo_parse: print meta-info to stderr


For the JSON output to be machine-readable we can't have random other
logging messages in the mix. Print the metadata to stderr instead of
stdout.

Signed-off-by: default avatarCaleb Connolly <caleb@postmarketos.org>
parent 941d71e5
No related branches found
No related tags found
No related merge requests found
......@@ -465,7 +465,7 @@ def deviceinfo_parse(args: PmbArgs) -> None:
# Iterate over all devices
kernel = args.deviceinfo_parse_kernel
for device in devices:
print(f"{device}, with kernel={kernel}:")
print(f"{device}, with kernel={kernel}:", file=sys.stderr)
print(json.dumps(pmb.parse.deviceinfo(device, kernel), indent=4, sort_keys=True))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment