mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
extra logging
This commit is contained in:
committed by
Michael Schurter
parent
e2553a13d4
commit
14cc4f7337
@@ -56,7 +56,7 @@ func (a *Agent) internalPluginConfigs() (map[loader.PluginID]*loader.InternalPlu
|
||||
|
||||
for id, reg := range catalog {
|
||||
if reg.Config == nil {
|
||||
a.logger.Warn("skipping loading internal plugin because it is missing its configuration", "plugin", id)
|
||||
a.logger.Error("skipping loading internal plugin because it is missing its configuration", "plugin", id)
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
@@ -156,6 +156,7 @@ func (l *PluginLoader) scan() ([]os.FileInfo, error) {
|
||||
if err != nil {
|
||||
// There are no plugins to scan
|
||||
if os.IsNotExist(err) {
|
||||
l.logger.Debug("skipping external plugins since plugin_dir doesn't exist")
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user