From 5f6100a9feff8982ecb428758554701c1ad1f67f Mon Sep 17 00:00:00 2001 From: bkiran6398 Date: Sat, 30 Mar 2024 23:07:17 +0530 Subject: [PATCH] handling 'setLogLevel' error of 'ConfigInit' if both 'debug' flag and 'loglevel' are set Signed-off-by: bkiran6398 --- cmd/fabric-ca-client/command/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fabric-ca-client/command/config.go b/cmd/fabric-ca-client/command/config.go index e3130ba9..7d2e56b1 100644 --- a/cmd/fabric-ca-client/command/config.go +++ b/cmd/fabric-ca-client/command/config.go @@ -226,7 +226,7 @@ func (c *ClientCmd) ConfigInit() error { if logLevel != "" { c.logLevel = logLevel } - calog.SetLogLevel(c.logLevel, debug) + err = calog.SetLogLevel(c.logLevel, debug) if err != nil { return err }