mirror of
https://github.com/niusmallnan/steve.git
synced 2025-07-16 23:51:13 +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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
logrus.Info("Refreshing all schemas")
|
|
||||||
schemas, err := converter.ToSchemas(h.crd, h.client)
|
schemas, err := converter.ToSchemas(h.crd, h.client)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -23,8 +23,6 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func AddDiscovery(client discovery.DiscoveryInterface, schemasMap map[string]*types.APISchema) error {
|
func AddDiscovery(client discovery.DiscoveryInterface, schemasMap map[string]*types.APISchema) error {
|
||||||
logrus.Info("Refreshing all schemas")
|
|
||||||
|
|
||||||
groups, resourceLists, err := client.ServerGroupsAndResources()
|
groups, resourceLists, err := client.ServerGroupsAndResources()
|
||||||
if gd, ok := err.(*discovery.ErrGroupDiscoveryFailed); ok {
|
if gd, ok := err.(*discovery.ErrGroupDiscoveryFailed); ok {
|
||||||
logrus.Errorf("Failed to read API for groups %v", gd.Groups)
|
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)
|
gvr := gvk.GroupVersion().WithResource(resource.Name)
|
||||||
|
|
||||||
logrus.Infof("APIVersion %s/%s Kind %s", gvk.Group, gvk.Version, gvk.Kind)
|
|
||||||
|
|
||||||
schema := schemasMap[GVKToVersionedSchemaID(gvk)]
|
schema := schemasMap[GVKToVersionedSchemaID(gvk)]
|
||||||
if schema == nil {
|
if schema == nil {
|
||||||
schema = &types.APISchema{
|
schema = &types.APISchema{
|
||||||
|
Loading…
Reference in New Issue
Block a user