From 1ff8118a038932e9ea97ef2bc44cb39e7d194629 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Thu, 5 Feb 2015 12:35:13 +0100 Subject: [PATCH] Add logging for hystrix fallback --- hystrix/src/main/resources/application.properties | 2 ++ hystrix/src/test/java/demo/HystrixApplicationTests.java | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hystrix/src/main/resources/application.properties b/hystrix/src/main/resources/application.properties index e69de29..70c0501 100644 --- a/hystrix/src/main/resources/application.properties +++ b/hystrix/src/main/resources/application.properties @@ -0,0 +1,2 @@ +# This way you get to see the exceptions when the fallback is accessed +logging.level.com.netflix.hystrix.AbstractCommand: DEBUG \ No newline at end of file diff --git a/hystrix/src/test/java/demo/HystrixApplicationTests.java b/hystrix/src/test/java/demo/HystrixApplicationTests.java index 9c92f70..de6f0b1 100644 --- a/hystrix/src/test/java/demo/HystrixApplicationTests.java +++ b/hystrix/src/test/java/demo/HystrixApplicationTests.java @@ -2,11 +2,9 @@ package demo; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; import org.junit.Test; import org.junit.runner.RunWith; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.test.IntegrationTest; import org.springframework.boot.test.SpringApplicationConfiguration;