Skip to content

Commit

Permalink
fix verify-structured-logging
Browse files Browse the repository at this point in the history
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
  • Loading branch information
dongjiang1989 committed Sep 23, 2024
1 parent fcaa7ac commit 9d320fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/metrics-server/metrics-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func main() {

if len(os.Getenv("GOMAXPROCS")) == 0 {
if _, err := maxprocs.Set(maxprocs.Logger(klog.Infof)); err != nil {
klog.Warningf("Failed to set GOMAXPROCS automatically. GOMAXPROCS set to %d", runtime.GOMAXPROCS(runtime.NumCPU()))
klog.ErrorS(err, "Failed to set GOMAXPROCS automatically. GOMAXPROCS set to default.", "GOMAXPROCS", runtime.GOMAXPROCS(runtime.NumCPU()))
}
}

Expand Down

0 comments on commit 9d320fc

Please sign in to comment.