Don't fail on extension startup
This commit is contained in:
parent
5e0f048826
commit
94d5c2e33d
|
@ -21,8 +21,8 @@ import (
|
||||||
"github.com/VictoriaMetrics/metrics"
|
"github.com/VictoriaMetrics/metrics"
|
||||||
jj "github.com/cloudfoundry-attic/jibber_jabber"
|
jj "github.com/cloudfoundry-attic/jibber_jabber"
|
||||||
ui "github.com/gizak/termui/v3"
|
ui "github.com/gizak/termui/v3"
|
||||||
"github.com/xxxserxxx/lingo"
|
|
||||||
"github.com/shibukawa/configdir"
|
"github.com/shibukawa/configdir"
|
||||||
|
"github.com/xxxserxxx/lingo"
|
||||||
"github.com/xxxserxxx/opflag"
|
"github.com/xxxserxxx/opflag"
|
||||||
|
|
||||||
"github.com/xxxserxxx/gotop/v4"
|
"github.com/xxxserxxx/gotop/v4"
|
||||||
|
@ -405,12 +405,9 @@ func run() int {
|
||||||
}
|
}
|
||||||
defer logfile.Close()
|
defer logfile.Close()
|
||||||
|
|
||||||
errs := devices.Startup(conf.ExtensionVars)
|
// device initialization errors do not stop execution
|
||||||
if len(errs) > 0 {
|
for _, err := range devices.Startup(conf.ExtensionVars) {
|
||||||
for _, err := range errs {
|
stderrLogger.Print(err)
|
||||||
stderrLogger.Print(err)
|
|
||||||
}
|
|
||||||
return 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lstream, err := getLayout(conf)
|
lstream, err := getLayout(conf)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user