Don't fail on extension startup

This commit is contained in:
Sean E. Russell 2021-03-02 03:06:39 -06:00
parent 5e0f048826
commit 94d5c2e33d

View File

@ -21,8 +21,8 @@ import (
"github.com/VictoriaMetrics/metrics"
jj "github.com/cloudfoundry-attic/jibber_jabber"
ui "github.com/gizak/termui/v3"
"github.com/xxxserxxx/lingo"
"github.com/shibukawa/configdir"
"github.com/xxxserxxx/lingo"
"github.com/xxxserxxx/opflag"
"github.com/xxxserxxx/gotop/v4"
@ -405,12 +405,9 @@ func run() int {
}
defer logfile.Close()
errs := devices.Startup(conf.ExtensionVars)
if len(errs) > 0 {
for _, err := range errs {
stderrLogger.Print(err)
}
return 1
// device initialization errors do not stop execution
for _, err := range devices.Startup(conf.ExtensionVars) {
stderrLogger.Print(err)
}
lstream, err := getLayout(conf)