Merge pull request #1014 from ijc/log-when-skipping-a-plugin
Do not claim to be loading a plugin which we aren't.
This commit is contained in:
		| @@ -117,10 +117,11 @@ func main() { | ||||
| 		) | ||||
| 		for _, init := range plugin.Graph() { | ||||
| 			id := init.URI() | ||||
| 			log.G(global).WithField("type", init.Type).Infof("loading plugin %q...", id) | ||||
| 			if !shouldLoad(init) { | ||||
| 				log.G(global).WithField("type", init.Type).Infof("skipping plugin %q...", id) | ||||
| 				continue | ||||
| 			} | ||||
| 			log.G(global).WithField("type", init.Type).Infof("loading plugin %q...", id) | ||||
| 			ic := plugin.NewContext(plugins) | ||||
| 			ic.Root = filepath.Join(conf.Root, id) | ||||
| 			ic.Context = log.WithModule(global, id) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kenfe-Mickaël Laventure
					Kenfe-Mickaël Laventure