mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
groups.path is not a mandatory parameter; ignore error upon parameter parsing and print warning if this parameter is not set
This commit is contained in:
parent
4270bbda6f
commit
ab1a4d9a29
1 changed files with 3 additions and 4 deletions
7
start.go
7
start.go
|
@ -89,16 +89,15 @@ func main() {
|
|||
log.Fatalf("Error reading port from global configuration: %s, aborting.", err)
|
||||
}
|
||||
|
||||
gPath, err := configuration.GlobalConfig.String("groups.path")
|
||||
if err != nil {
|
||||
log.Fatalf("Error reading path to groups YAML file: %s, aborting.", err)
|
||||
}
|
||||
gPath, _ := configuration.GlobalConfig.String("groups.path")
|
||||
|
||||
if gPath != "" {
|
||||
err = configuration.ReadGroupsFile(gPath)
|
||||
if err != nil {
|
||||
log.Fatalf("Error reading groups YAML file: %s, aborting.", err)
|
||||
}
|
||||
} else {
|
||||
log.Println("WARNING: path to groups yaml file not set, I am not initializing the scenario-groups mapping.")
|
||||
}
|
||||
|
||||
// Init database
|
||||
|
|
Loading…
Add table
Reference in a new issue