Skip to content

Commit

Permalink
remove the debugLogger
Browse files Browse the repository at this point in the history
Signed-off-by: KunWuLuan <kunwuluan@gmail.com>
  • Loading branch information
KunWuLuan committed May 15, 2024
1 parent b17c351 commit fb688a2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/visibility/api/rest/running_workloads_cq.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,9 @@ func (m *runningWorkloadsInCqREST) New() runtime.Object {
// Destroy implements rest.Storage interface
func (m *runningWorkloadsInCqREST) Destroy() {}

var (
debugLog = ctrl.Log.WithName("visibility-server")
)

// Get implements rest.GetterWithOptions interface
// It fetches information about running workloads and returns according to query params
func (m *runningWorkloadsInCqREST) Get(ctx context.Context, name string, opts runtime.Object) (runtime.Object, error) {
debugLog.V(1).Info("got a request")
runningWorkloadOpts, ok := opts.(*v1alpha1.RunningWorkloadOptions)
if !ok {
return nil, fmt.Errorf("invalid options object: %#v", opts)
Expand All @@ -71,7 +66,6 @@ func (m *runningWorkloadsInCqREST) Get(ctx context.Context, name string, opts ru

wls := make([]v1alpha1.RunningWorkload, 0, limit)
runningWorkloadsInfo, err := m.c.RunningWorkload(name)
debugLog.V(1).Info("got runningWorkloads", "len", len(runningWorkloadsInfo))
if err != nil {
return nil, err
}
Expand All @@ -80,7 +74,6 @@ func (m *runningWorkloadsInCqREST) Get(ctx context.Context, name string, opts ru
wlInfo := runningWorkloadsInfo[index]
wls = append(wls, *newRunningWorkload(wlInfo))
}
debugLog.V(1).Info("response", "len", len(wls))
return &v1alpha1.RunningWorkloadsSummary{Items: wls}, nil
}

Expand Down

0 comments on commit fb688a2

Please sign in to comment.