Commands all running

This commit is contained in:
Ian Fijolek
2019-10-02 09:37:29 -07:00
parent dd0b8e3f38
commit 7b746ed62a
6 changed files with 262 additions and 43 deletions
+3 -3
View File
@@ -9,8 +9,8 @@ import (
type Config struct {
CheckInterval int64 `yaml:"check_interval"`
Monitors []Monitor
Alerts map[string]Alert
Monitors []*Monitor
Alerts map[string]*Alert
}
func LoadConfig(filePath string) (config Config) {
@@ -24,7 +24,7 @@ func LoadConfig(filePath string) (config Config) {
err = yaml.Unmarshal([]byte(env_expanded), &config)
if err != nil {
log.Fatalf("error: %v", err)
log.Fatalf("ERROR: %v", err)
panic(err)
}