From 011961a3f43db86ab1720e9d8c75b59e8665d407 Mon Sep 17 00:00:00 2001 From: Jacob Weinstock Date: Mon, 13 May 2024 16:32:51 -0600 Subject: [PATCH] Remove unused logger: Signed-off-by: Jacob Weinstock --- internal/ipxe/http/xff.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/ipxe/http/xff.go b/internal/ipxe/http/xff.go index 29d2980b..49888a2e 100644 --- a/internal/ipxe/http/xff.go +++ b/internal/ipxe/http/xff.go @@ -27,8 +27,6 @@ import ( "net" "net/http" "strings" - - "github.com/go-logr/logr" ) // xffOptions is a configuration container to setup the XFF middleware. @@ -43,8 +41,6 @@ type xffOptions struct { // xff http handler. type xff struct { - // Debug logger - Log *logr.Logger // Set to true if all IPs or Subnets are allowed. allowAll bool // List of IP subnets that are allowed. @@ -61,9 +57,7 @@ func newXFF(options xffOptions) (*xff, error) { allowAll: len(options.AllowedSubnets) == 0, allowedMasks: allowedMasks, } - if options.Debug { - xff.Log = nil // logr.New(os.Stdout, "[xff] ", log.LstdFlags) - } + return xff, nil }