simov / grant

OAuth Proxy
MIT License
4.08k stars 257 forks source link

Request logs not working #214

Closed ivandotv closed 3 years ago

ivandotv commented 3 years ago

I'm trying the examples in the repository and it seems that debugging doesn't work. Go to dynamic-proxy and run:

DEBUG=req,res node express.js

There are no logs printed to the console when hitting the /hello route

simov commented 3 years ago

Hi @ivandotv, the debug logs mentioned in the docs are only concerned with requests being made by the internal HTTP client used in Grant. Your callback /hello route is handled by the HTTP framework, so for that you'll have to use a logger library for Express.

ivandotv commented 3 years ago

Got it, thanks.