From 480eaa77a833f7d53cf8fdab40a65779dba72599 Mon Sep 17 00:00:00 2001 From: Shiloh Fen Date: Thu, 21 Aug 2025 19:41:20 -0500 Subject: [PATCH] debug: improve logging Signed-off-by: Shiloh Fen --- src/atomic-xr/_debug.nu | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/atomic-xr/_debug.nu b/src/atomic-xr/_debug.nu index 7bfc1ba..d2fcd0a 100644 --- a/src/atomic-xr/_debug.nu +++ b/src/atomic-xr/_debug.nu @@ -9,7 +9,13 @@ export def main [ ] { let output = $output | default (mktemp -t --suffix .msgpackz) | path expand log info "This function produces a brotli-compressed msgpack debug file. It can be useful to provide more context for hard-to-debug issues" - log info $"If you'd like to check what information it contains, use `nu -c 'open ($output) | from msgpackz | explore'`" + + if $base64 { + log info $"If you'd like to check what information it contains, use `nu -c '{base64} | decode base64 | from msgpackz'`" + } else { + log info $"If you'd like to check what information it contains, use `nu -c 'open ($output) | from msgpackz'`" + } + log info "" log info "Creating debug file..." -- 2.51.2