From e498e2d0c03fe812af30e69d8bbdb043a027f4b0 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Tue, 21 May 2019 15:59:05 +0200 Subject: [PATCH] accounts/scwallet: fix error log warning --- cmd/utils/flags.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index b35655f0e5..7bacbd73d6 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1153,7 +1153,6 @@ func SetNodeConfig(ctx *cli.Context, cfg *node.Config) { func setSmartCard(ctx *cli.Context, cfg *node.Config) { // No support for windows, currently if runtime.GOOS != "windows" { - fmt.Println("setting smartcard") cfg.SmartCard = true // Use the platform default unless specified on the command line @@ -1162,10 +1161,10 @@ func setSmartCard(ctx *cli.Context, cfg *node.Config) { if fi.Mode()&os.ModeType == os.ModeSocket { cfg.SmartCardDaemonPath = ctx.GlobalString(SmartCardFlag.Name) } else { - log.Error(ctx.GlobalString(SmartCardFlag.Name), "doesn't seem to be a socket file") + log.Error(fmt.Sprintf("%s doesn't seem to be a socket file", ctx.GlobalString(SmartCardFlag.Name))) } } else { - log.Error(ctx.GlobalString(SmartCardFlag.Name), "doesn't exist") + log.Error(fmt.Sprintf("%s doesn't exist", ctx.GlobalString(SmartCardFlag.Name))) } } } else {