diff --git a/br/pkg/utils/misc.go b/br/pkg/utils/misc.go index cc57b630b2650..c503c52a3dfd3 100644 --- a/br/pkg/utils/misc.go +++ b/br/pkg/utils/misc.go @@ -199,7 +199,7 @@ func StartExitSingleListener(ctx context.Context) (context.Context, context.Canc printDelimate(fmt.Sprintf("Required Goroutine Dump = %v", dumpGoroutine)) if dumpGoroutine { printDelimate("Start Dumping Goroutine") - os.Stdout.Write(AllStackInfo()) + _, _ = os.Stdout.Write(AllStackInfo()) printDelimate("End of Dumping Goroutine") } log.Warn("received signal to exit", zap.Stringer("signal", sig))