mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 15:09:05 +01:00
Catch panicing collectors (hello Nvidia Go Bindings) late.
This commit is contained in:
parent
cb8221e73c
commit
7a7ce0c1b3
@ -243,9 +243,11 @@ func main() {
|
||||
err = col.Init([]byte(conf))
|
||||
if err != nil {
|
||||
log.Print("SKIP ", col.Name(), " (", err.Error(), ")")
|
||||
} else {
|
||||
log.Print("Start ", col.Name())
|
||||
tmp = append(tmp, c)
|
||||
} else if !col.Initialized() {
|
||||
log.Print("SKIP ", col.Name(), " (Not initialized)")
|
||||
} else {
|
||||
log.Print("Start ", col.Name())
|
||||
tmp = append(tmp, c)
|
||||
}
|
||||
}
|
||||
config.Collectors = tmp
|
||||
|
Loading…
Reference in New Issue
Block a user