Skip to content

Commit

Permalink
Unexport
Browse files Browse the repository at this point in the history
Signed-off-by: Dipack Panjabi <[email protected]>
  • Loading branch information
dipack95 committed Feb 23, 2025
1 parent 2e074aa commit eb05e26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/middleware/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type loggerConfig struct {
func NewLogger(config log.AccessLogConfig, l log.Logger) gin.HandlerFunc {
l = l.WithSubsystem(l.Subsystem() + ".access")

lc := NewLoggerConfig(config)
lc := newLoggerConfig(config)
return func(c *gin.Context) {
s := time.Now()

Expand Down Expand Up @@ -110,7 +110,7 @@ func (l *logHeaderFilter) Filter(h http.Header) http.Header {
return h
}

func NewLoggerConfig(c log.AccessLogConfig) loggerConfig {
func newLoggerConfig(c log.AccessLogConfig) loggerConfig {
l := loggerConfig{}
l.RequestHeader.New(c.RequestHeaders.Allowlist, c.RequestHeaders.Blocklist)
l.ResponseHeader.New(c.ResponseHeaders.Allowlist, c.ResponseHeaders.Blocklist)
Expand Down

0 comments on commit eb05e26

Please sign in to comment.