use logger

This commit is contained in:
pascal
2026-02-04 23:10:01 +01:00
parent 790ef39187
commit b01809f8e3
5 changed files with 19 additions and 10 deletions

View File

@@ -6,7 +6,6 @@ import (
"time"
"github.com/rs/xid"
log "github.com/sirupsen/logrus"
"github.com/netbirdio/netbird/proxy/internal/auth"
"github.com/netbirdio/netbird/proxy/internal/proxy"
@@ -14,7 +13,7 @@ import (
func (l *Logger) Middleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
log.Debugf("access log middleware invoked for %s %s", r.Method, r.URL.Path)
l.logger.Debugf("access log middleware invoked for %s %s", r.Method, r.URL.Path)
// Use a response writer wrapper so we can access the status code later.
sw := &statusWriter{
w: w,