mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
fix: changed output to use log instead of fmt
This commit is contained in:
parent
5ca4d17d42
commit
e1a9f4ae36
2 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ func initConfig() {
|
||||||
if configPath != "" {
|
if configPath != "" {
|
||||||
exists, err := util.PathExists(configPath)
|
exists, err := util.PathExists(configPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("failed to load config")
|
log.Error().Err(err).Str("path", configPath).Msg("failed to load config")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
} else if exists {
|
} else if exists {
|
||||||
conf = config.Load(configPath)
|
conf = config.Load(configPath)
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ var serveCmd = &cobra.Command{
|
||||||
conf.AccessToken = accessToken
|
conf.AccessToken = accessToken
|
||||||
} else {
|
} else {
|
||||||
if verbose {
|
if verbose {
|
||||||
fmt.Printf("No token found. Continuing without one...\n")
|
log.Warn().Msg("No token found. Continuing without one...\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue