add new lines to logs

This commit is contained in:
Mohamad Tahir 2023-10-30 14:57:39 +03:00
parent fb7dce9887
commit 57968638d2
Signed by: MohamadTahir
GPG Key ID: 116FAB02D35512FA

View File

@ -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