fix: changed output to use log instead of fmt

This commit is contained in:
David Allen 2024-12-03 12:51:48 -07:00
parent 5ca4d17d42
commit e1a9f4ae36
Signed by: towk
GPG key ID: 793B2924A49B3A3F
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ func initConfig() {
if configPath != "" {
exists, err := util.PathExists(configPath)
if err != nil {
fmt.Printf("failed to load config")
log.Error().Err(err).Str("path", configPath).Msg("failed to load config")
os.Exit(1)
} else if exists {
conf = config.Load(configPath)

View file

@ -27,7 +27,7 @@ var serveCmd = &cobra.Command{
conf.AccessToken = accessToken
} else {
if verbose {
fmt.Printf("No token found. Continuing without one...\n")
log.Warn().Msg("No token found. Continuing without one...\n")
}
}
}