Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
a45c0cce
Commit
a45c0cce
authored
Jan 21, 2015
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change printStackTrace to commons log statements
fixes gh-153
parent
c31f700b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
SpringDecoder.java
...rg/springframework/cloud/netflix/feign/SpringDecoder.java
+3
-1
SendResponseFilter.java
...k/cloud/netflix/zuul/filters/post/SendResponseFilter.java
+3
-1
HystrixStreamTask.java
...ringframework/netflix/hystrix/amqp/HystrixStreamTask.java
+1
-1
HystrixDashboardConfiguration.java
...flix/hystrix/dashboard/HystrixDashboardConfiguration.java
+2
-1
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/feign/SpringDecoder.java
View file @
a45c0cce
...
...
@@ -23,6 +23,7 @@ import java.lang.reflect.Type;
import
javax.inject.Provider
;
import
lombok.extern.apachecommons.CommonsLog
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.web.HttpMessageConverters
;
import
org.springframework.http.HttpHeaders
;
...
...
@@ -40,6 +41,7 @@ import static org.springframework.cloud.netflix.feign.FeignUtils.getHttpHeaders;
/**
* @author Spencer Gibb
*/
@CommonsLog
public
class
SpringDecoder
implements
Decoder
{
@Autowired
...
...
@@ -91,7 +93,7 @@ public class SpringDecoder implements Decoder {
this
.
response
.
body
().
close
();
}
catch
(
IOException
ex
)
{
ex
.
printStackTrace
(
);
log
.
error
(
"Error closing response body"
,
ex
);
}
}
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/post/SendResponseFilter.java
View file @
a45c0cce
...
...
@@ -34,10 +34,12 @@ import com.netflix.zuul.ZuulFilter;
import
com.netflix.zuul.constants.ZuulConstants
;
import
com.netflix.zuul.constants.ZuulHeaders
;
import
com.netflix.zuul.context.RequestContext
;
import
lombok.extern.apachecommons.CommonsLog
;
/**
* @author Spencer Gibb
*/
@CommonsLog
public
class
SendResponseFilter
extends
ZuulFilter
{
private
static
DynamicBooleanProperty
INCLUDE_DEBUG_HEADER
=
DynamicPropertyFactory
...
...
@@ -157,7 +159,7 @@ public class SendResponseFilter extends ZuulFilter {
}
catch
(
IOException
ex
)
{
// ignore
ex
.
printStackTrace
(
);
log
.
debug
(
"Error writing response"
,
ex
);
}
// doubles buffer size if previous read filled it
if
(
bytesRead
==
bytes
.
length
)
{
...
...
spring-cloud-netflix-hystrix-amqp/src/main/java/org/springframework/netflix/hystrix/amqp/HystrixStreamTask.java
View file @
a45c0cce
...
...
@@ -84,7 +84,7 @@ public class HystrixStreamTask implements ApplicationContextAware {
this
.
channel
.
send
(
json
);
}
catch
(
Exception
ex
)
{
ex
.
printStackTrace
(
);
log
.
error
(
"Error sending json to channel"
,
ex
);
}
}
}
...
...
spring-cloud-netflix-hystrix-dashboard/src/main/java/org/springframework/cloud/netflix/hystrix/dashboard/HystrixDashboardConfiguration.java
View file @
a45c0cce
...
...
@@ -49,6 +49,7 @@ import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;
*/
@SuppressWarnings
(
"deprecation"
)
@Configuration
@CommonsLog
public
class
HystrixDashboardConfiguration
{
private
static
final
String
DEFAULT_TEMPLATE_LOADER_PATH
=
"classpath:/templates/"
;
...
...
@@ -208,7 +209,7 @@ public class HystrixDashboardConfiguration {
is
.
close
();
}
catch
(
Exception
ex
)
{
// e.printStackTrace(
);
log
.
debug
(
"Error closing input stream"
,
ex
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment