Don't fail on extension startup
This commit is contained in:
parent
5e0f048826
commit
94d5c2e33d
|
@ -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,13 +405,10 @@ func run() int {
|
|||
}
|
||||
defer logfile.Close()
|
||||
|
||||
errs := devices.Startup(conf.ExtensionVars)
|
||||
if len(errs) > 0 {
|
||||
for _, err := range errs {
|
||||
// device initialization errors do not stop execution
|
||||
for _, err := range devices.Startup(conf.ExtensionVars) {
|
||||
stderrLogger.Print(err)
|
||||
}
|
||||
return 1
|
||||
}
|
||||
|
||||
lstream, err := getLayout(conf)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user