From 8f44113b5479422924f3093bb1ef060040f3791e Mon Sep 17 00:00:00 2001 From: Chaitanya Kulkarni Date: Wed, 10 Jun 2026 14:23:46 -0700 Subject: [PATCH] Remove deprecated writers parameter from NewStderrBackend. The `writers` parameter in NewStderrBackend was deprecated and always ignored, as the function always writes to os.Stderr. This change removes the unused parameter and updates the function signature and comments. PiperOrigin-RevId: 930077035 --- galog_stderr.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/galog_stderr.go b/galog_stderr.go index ae9c940..8f664f6 100644 --- a/galog_stderr.go +++ b/galog_stderr.go @@ -15,7 +15,6 @@ package galog import ( - "io" "os" ) @@ -34,10 +33,8 @@ type StderrBackend struct { } // NewStderrBackend returns a Backend implementation that will log out to -// the process' stderr. Writers is deprecated and will be removed in the future. -// It is kept for compatibility with users who may have used it in the past. -// It always writes to os.Stderr. -func NewStderrBackend(writers ...io.Writer) *StderrBackend { +// the process' stderr. It always writes to os.Stderr. +func NewStderrBackend() *StderrBackend { res := &StderrBackend{ writerBackend: &writerBackend{ backendID: "log-backend,stderr",