How to enable Hystrix DEBUG level logging

别说谁变了你拦得住时间么 提交于 2021-02-20 09:19:41

问题


I have implemented Netflix OSS Hystrix in one of my Spring boot application. And configured some properties for the HystrixCommand. But how can I verify that those properties are really used by HystrixCommand. For example,

hystrix.threadpool.default.maxQueueSize=12
hystrix.threadpool.default.keepAliveTimeMinute=2
hystrix.command.default.execution.isolation.strategy=SEMAPHORE

How can I see that these properties are applied to HystrixCommand? Is there any way I can enable debug level logging for Hystrix?

TIA


回答1:


I think I found the answer. Adding below line generates Hystrix DEBUG level logging.

logging:
  level:
   com.netflix.hystrix: DEBUG


来源:https://stackoverflow.com/questions/48952910/how-to-enable-hystrix-debug-level-logging

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!