Skip to content

Commit

Permalink
chore: Make info level log to debug (kyma-project#878)
Browse files Browse the repository at this point in the history
change info level log to debug for watcher
  • Loading branch information
ruanxin authored Sep 22, 2023
1 parent 0d0cac2 commit b5b026e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/watcher/skr_webhook_manifest_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (m *SKRWebhookManifestManager) Install(ctx context.Context, kyma *v1beta2.K
if err != nil {
return fmt.Errorf("failed to apply webhook resources: %w", err)
}
logger.Info("successfully installed webhook resources",
logger.V(log.DebugLevel).Info("successfully installed webhook resources",
"kyma", kymaObjKey.String())
return nil
}
Expand Down Expand Up @@ -157,7 +157,7 @@ func (m *SKRWebhookManifestManager) Remove(ctx context.Context, kyma *v1beta2.Ky
if err != nil && !util.IsNotFound(err) {
return fmt.Errorf("failed to delete webhook resources: %w", err)
}
logger.Info("successfully removed webhook resources",
logger.V(log.DebugLevel).Info("successfully removed webhook resources",
"kyma", kymaObjKey.String())
return nil
}
Expand All @@ -179,7 +179,7 @@ func (m *SKRWebhookManifestManager) getSKRClientObjectsForInstall(ctx context.Co
if err != nil {
return nil, err
}
logger.Info(fmt.Sprintf("using %d watchers to generate webhook configs", len(watchers)))
logger.V(log.DebugLevel).Info(fmt.Sprintf("using %d watchers to generate webhook configs", len(watchers)))
genClientObjects := getGeneratedClientObjects(resourcesConfig, watchers, remoteNs)
return append(skrClientObjects, genClientObjects...), nil
}
Expand Down

0 comments on commit b5b026e

Please sign in to comment.