diff --git a/auth.go b/auth.go index a88dc93..6409824 100644 --- a/auth.go +++ b/auth.go @@ -5,6 +5,9 @@ import ( "net/http" ) +// Java like +const TAG = "[ Auth ]" + type AuthHandler struct { Handler http.Handler } @@ -14,7 +17,7 @@ func (l *AuthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { AuthHeader := r.Header.Get("Authorization") RealIP := r.Header.Get("X-Real-IP") if AuthHeader != task.Auth { - log.Printf("Dropping request from %s.", RealIP) + log.Printf("%s Dropping request from %s", TAG, RealIP) return // drop } l.Handler.ServeHTTP(w, r)