Skip to content

Commit

Permalink
Remove unused logger:
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
  • Loading branch information
jacobweinstock committed Dec 4, 2024
1 parent 959bf27 commit f83a84f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/ipxe/http/xff.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import (
"net"
"net/http"
"strings"

"github.com/go-logr/logr"
)

// xffOptions is a configuration container to setup the XFF middleware.
Expand All @@ -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.
Expand All @@ -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
}

Expand Down

0 comments on commit f83a84f

Please sign in to comment.