Using Spring Boot, how do I find out debugging information for Zuul?

I am trying to use Zuul in my Spring boot project.

application.properties

server.context-path=/${spring.application.name} zuul.routes.engine.path=/api/engine/** zuul.routes.engine.url=${engine.url} 

GET requests work; however, Zuul does not redirect my POST requests. I do not see any of the debug output for the GET or POST listed here: How to use .

How to enable DEBUG logging mode for Zuul?

+9
source share
4 answers

Set property zuul.debug.request=true .

+14
source

Spencer's answer did not work for me with the current version of Zuul (Spring Cloud Starter Zuul 1.4.6.RELEASE). Instead, the following logging property has been added to application.yml

 logging: level: org: springframework: cloud: netflix: trace 
+1
source

To register requests and responses in a Spring application, I successfully use the property:

 logging: level: org: apache: http: wire: debug 
+1
source

You need two things:

  1. Add zuul.include-debug-header: true to your application.yml file.
  2. Add debug=true to your request, e.g. http://localhost:8080/api/user/1?debug=true

This way you will get debugging data in X-Zuul-Debug-Header in the answer

0
source

All Articles