mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
parent
5b486a1849
commit
75868a7005
1 changed files with 5 additions and 3 deletions
|
|
@ -2,6 +2,7 @@ package config
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
|
|
@ -486,11 +487,12 @@ func (man Manager) loadConfigFile() {
|
|||
man.viper.SetConfigFile(configFile)
|
||||
err := man.viper.ReadInConfig()
|
||||
|
||||
fmt.Println("Using config file: ", man.viper.ConfigFileUsed())
|
||||
|
||||
if err != nil {
|
||||
panic("Error reading config: " + err.Error())
|
||||
fmt.Println("Error loading config file:", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
fmt.Println("Using config file: ", man.viper.ConfigFileUsed())
|
||||
}
|
||||
|
||||
// TestConfig returns a barebones configuration suitable for use in tests.
|
||||
|
|
|
|||
Loading…
Reference in a new issue