mirror of
https://github.com/niusmallnan/steve.git
synced 2025-04-28 03:12:20 +00:00
Remove noisy logging
This commit is contained in:
parent
dde5805b76
commit
52f86dce9b
@ -154,7 +154,6 @@ func (h *handler) refreshAll(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
logrus.Info("Refreshing all schemas")
|
||||
schemas, err := converter.ToSchemas(h.crd, h.client)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -23,8 +23,6 @@ var (
|
||||
)
|
||||
|
||||
func AddDiscovery(client discovery.DiscoveryInterface, schemasMap map[string]*types.APISchema) error {
|
||||
logrus.Info("Refreshing all schemas")
|
||||
|
||||
groups, resourceLists, err := client.ServerGroupsAndResources()
|
||||
if gd, ok := err.(*discovery.ErrGroupDiscoveryFailed); ok {
|
||||
logrus.Errorf("Failed to read API for groups %v", gd.Groups)
|
||||
@ -78,8 +76,6 @@ func refresh(gv schema.GroupVersion, groupToPreferredVersion map[string]string,
|
||||
}
|
||||
gvr := gvk.GroupVersion().WithResource(resource.Name)
|
||||
|
||||
logrus.Infof("APIVersion %s/%s Kind %s", gvk.Group, gvk.Version, gvk.Kind)
|
||||
|
||||
schema := schemasMap[GVKToVersionedSchemaID(gvk)]
|
||||
if schema == nil {
|
||||
schema = &types.APISchema{
|
||||
|
Loading…
Reference in New Issue
Block a user