From 307e0ae92d7eb6234754a0eb75ab1c020dcc4ceb Mon Sep 17 00:00:00 2001 From: Lev Livnev Date: Fri, 7 Oct 2022 15:06:31 +0000 Subject: [PATCH] seth-rpc: send the RPC request to stderr if SETH_VERBOSE --- src/seth/libexec/seth/seth-rpc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/seth/libexec/seth/seth-rpc b/src/seth/libexec/seth/seth-rpc index af04ea9b6..d54d485b2 100755 --- a/src/seth/libexec/seth/seth-rpc +++ b/src/seth/libexec/seth/seth-rpc @@ -13,6 +13,7 @@ rpc-error() { jshon -Q -e error -j; } request=$(seth rpc-request -- "$@") response=$(seth rpc-curl <<<"$request") +[[ $SETH_VERBOSE ]] && SETH_KEY_WIDTH=10 seth --show-json <<< "$request" | sed >&2 "s/^/${0##*/}: /" if result=$(rpc-result <<<"$response"); then seth --show-json <<<"$result"