Skip to content

Commit

Permalink
ref: change log format
Browse files Browse the repository at this point in the history
  • Loading branch information
kenriortega committed Nov 11, 2021
1 parent 1139d73 commit 1f603e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/cli/setup.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cli

import (
"log"

"github.com/kenriortega/ngonx/pkg/errors"
"github.com/kenriortega/ngonx/pkg/logger"
"github.com/spf13/cobra"
)

Expand All @@ -12,7 +12,8 @@ var setupCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
settingsFile, err := cmd.Flags().GetString(flagCfgFile)
if err != nil {
log.Fatalf(err.Error())
logger.LogError(errors.Errorf("ngonx: :%v", err).Error())

}
configFromYaml.CreateSettingFile(settingsFile)

Expand Down

0 comments on commit 1f603e4

Please sign in to comment.