From c2608033e53515de4507cbbd34e4a7ea04db1d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Tue, 25 Jan 2022 18:53:00 +0100 Subject: [PATCH] make skipping output optional --- cmd/taler-auditor-offline-signing/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/taler-auditor-offline-signing/main.go b/cmd/taler-auditor-offline-signing/main.go index b4e0384..a9a7d91 100644 --- a/cmd/taler-auditor-offline-signing/main.go +++ b/cmd/taler-auditor-offline-signing/main.go @@ -679,7 +679,9 @@ func Sign(input *Input, skip map[SHA512Hash]bool, url string, pk ed25519.Private hash, sig := SignDenom(&denom, sha512.Sum512(append([]byte(url), 0)), &input.Arguments.MasterPublicKey, &pk) if skip[hash] { - log.Printf("Skipping denom_pub_h %q as it has been already signed\n", hash) + if *verbose { + log.Printf("Skipping denom_pub_h %q as it has been already signed\n", hash) + } continue } @@ -696,6 +698,7 @@ var ( injson = flag.String("input", "-", "input json for signing") keyfile = flag.String("key", "auditor.key", "filename of EC25519 private key") url = flag.String("url", "https://auditor.codeblau.de/", "auditor url") + verbose = flag.Bool("v", false, "verbose output on stderr") ) func main() {