Skip to content

Commit

Permalink
Call CreateUtilZapLogger in function mustClientCfgFromCmd
Browse files Browse the repository at this point in the history
Signed-off-by: Colin <jay_jieliu@outlook.com>
  • Loading branch information
LLiuJJ committed May 7, 2024
1 parent 3c40d60 commit de12c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etcdctl/ctlv3/command/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func clientConfigFromCmd(cmd *cobra.Command) *clientv3.ConfigSpec {

func mustClientCfgFromCmd(cmd *cobra.Command) *clientv3.Config {
cc := clientConfigFromCmd(cmd)
lg, _ := logutil.CreateDefaultZapLogger(zap.InfoLevel)
lg, _ := logutil.CreateUtilZapLogger(zap.InfoLevel)
cfg, err := clientv3.NewClientConfig(cc, lg)
if err != nil {
cobrautl.ExitWithError(cobrautl.ExitBadArgs, err)
Expand Down

0 comments on commit de12c66

Please sign in to comment.