Skip to content

Commit

Permalink
Log request path.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Jan 18, 2025
1 parent 816129b commit 7749fc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/middleware/authentication/firebase_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package authentication

import (
"context"
"fmt"
"net/http"
"regexp"
"registry-backend/db"
Expand Down Expand Up @@ -108,7 +109,8 @@ func FirebaseAuthMiddleware(entClient *ent.Client) echo.MiddlewareFunc {
return next(ctx)
}

return echo.NewHTTPError(http.StatusUnauthorized, "missing auth token")
return echo.NewHTTPError(http.StatusUnauthorized,
fmt.Sprintf("missing auth token for path: %s", reqPath))
}
}
}
Expand Down

0 comments on commit 7749fc8

Please sign in to comment.