Skip to content
Snippets Groups Projects
Verified Commit cf87e73d authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Improve output

parent d88b7aa2
No related branches found
No related tags found
No related merge requests found
......@@ -29,11 +29,13 @@ func main() {
var config Config
file, err := ioutil.ReadFile(*configPath)
if err != nil {
panic(err.Error())
logrus.Error(err.Error())
os.Exit(1)
}
err = yaml.Unmarshal(file, &config)
if err != nil {
panic(err.Error())
logrus.Error(err.Error())
os.Exit(1)
}
for index := range config.Components {
setDefaultString(&config.Components[index].Interval, "10s")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment