Fail and exit telegraf if no plugins are found loaded, issue #26
This commit is contained in:
parent
fc95e8401a
commit
38bbe7567a
|
@ -71,6 +71,10 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
if len(plugins) == 0 {
|
||||||
|
log.Printf("Error: no plugins found, did you provide a config file?")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
if *fTest {
|
if *fTest {
|
||||||
if *fConfig != "" {
|
if *fConfig != "" {
|
||||||
|
|
Loading…
Reference in New Issue