mirror of
https://github.com/ditkrg/traefik-users-blocker-plugin.git
synced 2026-01-22 20:16:53 +00:00
add new lines to logs
This commit is contained in:
parent
fb7dce9887
commit
57968638d2
8
main.go
8
main.go
@ -54,11 +54,11 @@ func New(ctx context.Context, next http.Handler, config *Config, name string) (h
|
||||
func (a *UsersBlocker) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
||||
userId := req.Header["X-Auth-User-Id"][0]
|
||||
|
||||
os.Stdout.WriteString("request Path ->")
|
||||
os.Stdout.WriteString(req.URL.Path)
|
||||
os.Stdout.WriteString("\n request Path ->")
|
||||
os.Stdout.WriteString(req.URL.Path + "\n")
|
||||
|
||||
os.Stdout.WriteString("userId ->")
|
||||
os.Stdout.WriteString(userId)
|
||||
os.Stdout.WriteString("\n userId ->")
|
||||
os.Stdout.WriteString(userId + "\n")
|
||||
|
||||
var isUserBlocked bool
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user