Skip to content

Commit

Permalink
Merge pull request #291 from jarnfast/feature/adjust-logging-levels
Browse files Browse the repository at this point in the history
Switch log level for messages from info to debug
  • Loading branch information
schristoff authored Jan 21, 2025
2 parents a3d5ddd + c6bdd3a commit 416adb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/kubernetes/secrets/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewPlugin(cxt *portercontext.Context, pluginConfig config.Config) (hplugin.
JSONFormat: true,
})
cfg := PluginConfig{Logger: logger, Namespace: pluginConfig.Namespace}
logger.Info(fmt.Sprintf("NewPlugin.Config.Namespace: %s", cfg.Namespace))
logger.Debug(fmt.Sprintf("NewPlugin.Config.Namespace: %s", cfg.Namespace))
if err := mapstructure.Decode(pluginConfig, &cfg); err != nil {
return nil, errors.Wrapf(err, "error decoding %s plugin config from %#v", PluginKey, pluginConfig)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/kubernetes/secrets/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ func (s *Store) connect() error {
if s.clientSet != nil {
return nil
}
s.logger.Info(fmt.Sprintf("Store.connect: pre-clientset %s : %s", "namespace", s.namespace))
s.logger.Debug(fmt.Sprintf("Store.connect: pre-clientset %s : %s", "namespace", s.namespace))
clientSet, namespace, err := k8shelper.GetClientSet(s.namespace)
if err != nil {
return err
}
s.namespace = *namespace
s.logger.Info(fmt.Sprintf("Store.connect: post-clientset %s : %s", "namespace", s.namespace))
s.logger.Debug(fmt.Sprintf("Store.connect: post-clientset %s : %s", "namespace", s.namespace))

s.clientSet = clientSet

Expand Down

0 comments on commit 416adb9

Please sign in to comment.