mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-08-15 23:22:59 +02:00
Catch panicing collectors (hello Nvidia Go Bindings) late.
This commit is contained in:
@@ -243,6 +243,8 @@ func main() {
|
|||||||
err = col.Init([]byte(conf))
|
err = col.Init([]byte(conf))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Print("SKIP ", col.Name(), " (", err.Error(), ")")
|
log.Print("SKIP ", col.Name(), " (", err.Error(), ")")
|
||||||
|
} else if !col.Initialized() {
|
||||||
|
log.Print("SKIP ", col.Name(), " (Not initialized)")
|
||||||
} else {
|
} else {
|
||||||
log.Print("Start ", col.Name())
|
log.Print("Start ", col.Name())
|
||||||
tmp = append(tmp, c)
|
tmp = append(tmp, c)
|
||||||
|
Reference in New Issue
Block a user