From 9fa6b25fb27b1df0e7aa62d024f2b0d1e2cbcb66 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sun, 7 Aug 2022 22:58:29 +0300 Subject: [PATCH] lib/logger: prettify logging the defined command-line flags --- lib/logger/flag.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/logger/flag.go b/lib/logger/flag.go index 1383cad94..565e2bd0d 100644 --- a/lib/logger/flag.go +++ b/lib/logger/flag.go @@ -10,13 +10,13 @@ import ( func logAllFlags() { Infof("build version: %s", buildinfo.Version) - Infof("command line flags") + Infof("command-line flags") flag.Visit(func(f *flag.Flag) { lname := strings.ToLower(f.Name) value := f.Value.String() if flagutil.IsSecretFlag(lname) { value = "secret" } - Infof("flag %q=%q", f.Name, value) + Infof(" -%s=%q", f.Name, value) }) }