fix bad log format (#35150)

This commit is contained in:
Will Browne 2021-06-03 10:26:52 +02:00 committed by GitHub
parent 9df23b8fff
commit 057ba4a6e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -634,7 +634,7 @@ func (s *PluginScanner) validateSignature(plugin *plugins.PluginBase) *plugins.P
switch plugin.Signature {
case plugins.PluginSignatureUnsigned:
if allowed := s.allowUnsigned(plugin); !allowed {
s.log.Debug("Plugin is unsigned", "id", plugin.Id)
s.log.Debug("Plugin is unsigned", "pluginID", plugin.Id)
s.errors = append(s.errors, fmt.Errorf("plugin '%s' is unsigned", plugin.Id))
return &plugins.PluginError{
ErrorCode: signatureMissing,
@ -644,13 +644,13 @@ func (s *PluginScanner) validateSignature(plugin *plugins.PluginBase) *plugins.P
plugin.PluginDir)
return nil
case plugins.PluginSignatureInvalid:
s.log.Debug("Plugin '%s' has an invalid signature", plugin.Id)
s.log.Debug("Plugin has an invalid signature", "pluginID", plugin.Id)
s.errors = append(s.errors, fmt.Errorf("plugin '%s' has an invalid signature", plugin.Id))
return &plugins.PluginError{
ErrorCode: signatureInvalid,
}
case plugins.PluginSignatureModified:
s.log.Debug("Plugin '%s' has a modified signature", plugin.Id)
s.log.Debug("Plugin has a modified signature", "pluginID", plugin.Id)
s.errors = append(s.errors, fmt.Errorf("plugin '%s' has a modified signature", plugin.Id))
return &plugins.PluginError{
ErrorCode: signatureModified,