feat(plugins): better logging and handling of loading plugins, try to create plugins dir if it does not exist, fixes #3974
This commit is contained in:
1 parent
509b37eb91
commit
257b824d4f
8 files changed
+53
-34
No files matched your search
@@ -17,8 +17,10 @@ func (p *DataSourcePlugin) Load(decoder *json.Decoder, pluginDir string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
p.PluginDir = pluginDir
|
||||
DataSources[p.Id] = p
|
||||
if err := p.registerPlugin(pluginDir); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
DataSources[p.Id] = p
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user