mirror of
https://github.com/grafana/grafana.git
synced 2025-01-19 13:03:32 -06:00
fix bad log format (#35150)
This commit is contained in:
parent
9df23b8fff
commit
057ba4a6e7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user