Skip to content

Commit

Permalink
Fix controller problematic log output
Browse files Browse the repository at this point in the history
Signed-off-by: Ming <mqiu@vmware.com>
  • Loading branch information
qiuming-best committed Nov 9, 2022
1 parent bd646b1 commit bb12914
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/CHANGELOG-1.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ https://velero.io/docs/v1.9/
https://velero.io/docs/v1.9/upgrade-to-1.9/

### All changes
* Fix controller problematic log output (#5570, @qiuming-best)
* Bump up golang version to 1.18.8 (#5558, @qiuming-best)
* Enhance the restore priorities list to support specifying the low prioritized resources that need to be restored in the last (#5529, @ywk253100)
* Fix v1.9.3 CSI VolumeSnapshot status duplicate issue. (#5518, @blackpiglet)
Expand Down
8 changes: 8 additions & 0 deletions pkg/util/kube/periodical_enqueue_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package kube

import (
"context"
"fmt"
"reflect"
"time"

Expand Down Expand Up @@ -96,3 +97,10 @@ func (p *PeriodicalEnqueueSource) Start(ctx context.Context, h handler.EventHand

return nil
}

func (p *PeriodicalEnqueueSource) String() string {
if p.objList != nil {
return fmt.Sprintf("kind source: %T", p.objList)
}
return "kind source: unknown type"
}

0 comments on commit bb12914

Please sign in to comment.