File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Fix issue #9658, Honor --stderrthreshold when --logtostderr is enabled
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ require (
5454 k8s.io/apimachinery v0.33.3
5555 k8s.io/cli-runtime v0.33.3
5656 k8s.io/client-go v0.33.3
57- k8s.io/klog/v2 v2.130.1
57+ k8s.io/klog/v2 v2.140.0
5858 k8s.io/kube-aggregator v0.33.3
5959 k8s.io/metrics v0.33.3
6060 k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738
Original file line number Diff line number Diff line change @@ -1235,8 +1235,8 @@ k8s.io/client-go v0.33.3/go.mod h1:luqKBQggEf3shbxHY4uVENAxrDISLOarxpTKMiUuujg=
12351235k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac /go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0 =
12361236k8s.io/klog/v2 v2.0.0 /go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE =
12371237k8s.io/klog/v2 v2.9.0 /go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec =
1238- k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk =
1239- k8s.io/klog/v2 v2.130.1 /go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE =
1238+ k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc =
1239+ k8s.io/klog/v2 v2.140.0 /go.mod h1:o+/RWfJ6PwpnFn7OyAG3QnO47BFsymfEfrz6XyYSSp0 =
12401240k8s.io/kube-aggregator v0.33.3 h1:Pa6hQpKJMX0p0D2wwcxXJgu02++gYcGWXoW1z1ZJDfo =
12411241k8s.io/kube-aggregator v0.33.3 /go.mod h1:hwvkUoQ8q6gv0+SgNnlmQ3eUue1zHhJKTHsX7BwxwSE =
12421242k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e /go.mod h1:vHXdDvt9+2spS2Rx9ql3I8tycm3H9FDfdUoIuKCefvw =
Original file line number Diff line number Diff line change @@ -132,6 +132,11 @@ operations can also be performed as 'velero backup get' and 'velero schedule cre
132132
133133 // init and add the klog flags
134134 klog .InitFlags (flag .CommandLine )
135+ // Opt into the new klog behavior so that -stderrthreshold is honored even
136+ // when -logtostderr=true (the default).
137+ // Ref: kubernetes/klog#212, kubernetes/klog#432
138+ flag .CommandLine .Set ("legacy_stderr_threshold_behavior" , "false" ) //nolint:errcheck // flag is registered by klog.InitFlags above
139+ flag .CommandLine .Set ("stderrthreshold" , "INFO" ) //nolint:errcheck // flag is registered by klog.InitFlags above
135140 c .PersistentFlags ().AddGoFlagSet (flag .CommandLine )
136141
137142 return c
You can’t perform that action at this time.
0 commit comments