(ctx context.Context, args ...interface{})
| 72 | } |
| 73 | |
| 74 | func (l *sanitizingLogger) Debug(ctx context.Context, args ...interface{}) { |
| 75 | for _, arg := range args { |
| 76 | s, ok := arg.(string) |
| 77 | if !ok { |
| 78 | continue |
| 79 | } |
| 80 | msg := strings.ToLower(s) |
| 81 | if strings.Contains(msg, "ping success") || strings.Contains(msg, "receive pong") { |
| 82 | return |
| 83 | } |
| 84 | } |
| 85 | l.inner.Debug(ctx, l.maskURL(args...)...) |
| 86 | } |
| 87 | |
| 88 | func (l *sanitizingLogger) Info(ctx context.Context, args ...interface{}) { |
| 89 | l.inner.Info(ctx, l.maskURL(args...)...) |