@@ -2,7 +2,6 @@ package sentry
22
33import (
44 "context"
5- "errors"
65 "fmt"
76 "os"
87 "strings"
@@ -207,59 +206,3 @@ func (l *sentryLogger) Panicf(ctx context.Context, format string, v ...interface
207206 l .log (ctx , LogLevelFatal , LogSeverityFatal , format , v ... )
208207 panic (fmt .Sprint (v ... ))
209208}
210-
211- // fallback no-op logger if Sentry is not enabled.
212- type noopLogger struct {}
213-
214- func (* noopLogger ) Trace (_ context.Context , _ ... interface {}) {
215- DebugLogger .Println ("does nothing: EnableLogs disabled" )
216- }
217- func (* noopLogger ) Debug (_ context.Context , _ ... interface {}) {
218- DebugLogger .Println ("does nothing: EnableLogs disabled" )
219- }
220- func (* noopLogger ) Info (_ context.Context , _ ... interface {}) {
221- DebugLogger .Println ("does nothing: EnableLogs disabled" )
222- }
223- func (* noopLogger ) Warn (_ context.Context , _ ... interface {}) {
224- DebugLogger .Println ("does nothing: EnableLogs disabled" )
225- }
226- func (* noopLogger ) Error (_ context.Context , _ ... interface {}) {
227- DebugLogger .Println ("does nothing: EnableLogs disabled" )
228- }
229- func (* noopLogger ) Fatal (_ context.Context , _ ... interface {}) {
230- DebugLogger .Println ("does nothing: EnableLogs disabled" )
231- os .Exit (1 )
232- }
233- func (* noopLogger ) Panic (_ context.Context , _ ... interface {}) {
234- DebugLogger .Println ("does nothing: EnableLogs disabled" )
235- panic ("invalid setup: EnableLogs disabled" )
236- }
237- func (* noopLogger ) Tracef (_ context.Context , _ string , _ ... interface {}) {
238- DebugLogger .Println ("does nothing: EnableLogs disabled" )
239- }
240- func (* noopLogger ) Debugf (_ context.Context , _ string , _ ... interface {}) {
241- DebugLogger .Println ("does nothing: EnableLogs disabled" )
242- }
243- func (* noopLogger ) Infof (_ context.Context , _ string , _ ... interface {}) {
244- DebugLogger .Println ("does nothing: EnableLogs disabled" )
245- }
246- func (* noopLogger ) Warnf (_ context.Context , _ string , _ ... interface {}) {
247- DebugLogger .Println ("does nothing: EnableLogs disabled" )
248- }
249- func (* noopLogger ) Errorf (_ context.Context , _ string , _ ... interface {}) {
250- DebugLogger .Println ("does nothing: EnableLogs disabled" )
251- }
252- func (* noopLogger ) Fatalf (_ context.Context , _ string , _ ... interface {}) {
253- DebugLogger .Println ("does nothing: EnableLogs disabled" )
254- os .Exit (1 )
255- }
256- func (* noopLogger ) Panicf (_ context.Context , _ string , _ ... interface {}) {
257- DebugLogger .Println ("does nothing: EnableLogs disabled" )
258- panic ("invalid setup: EnableLogs disabled" )
259- }
260- func (* noopLogger ) SetAttributes (... attribute.Builder ) {
261- DebugLogger .Println ("does nothing: EnableLogs disabled" )
262- }
263- func (* noopLogger ) Write (_ []byte ) (n int , err error ) {
264- return 0 , errors .New ("does nothing: EnableLogs disabled" )
265- }
0 commit comments