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
5b075623
Commit
5b075623
authored
Jul 13, 2017
by
Gregor Zurowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Lombok logging from spring-cloud-netflix-core module
Signed-off-by:
Gregor Zurowski
<
gregor@zurowski.org
>
parent
46cbaa05
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
34 additions
and
31 deletions
+34
-31
ArchaiusAutoConfiguration.java
...ork/cloud/netflix/archaius/ArchaiusAutoConfiguration.java
+4
-3
ResponseEntityDecoder.java
...rk/cloud/netflix/feign/support/ResponseEntityDecoder.java
+0
-2
SpringEncoder.java
...gframework/cloud/netflix/feign/support/SpringEncoder.java
+4
-2
ServoMonitorCache.java
...mework/cloud/netflix/metrics/servo/ServoMonitorCache.java
+5
-3
ZuulFilterInitializer.java
...ngframework/cloud/netflix/zuul/ZuulFilterInitializer.java
+4
-3
ProxyRequestHelper.java
...mework/cloud/netflix/zuul/filters/ProxyRequestHelper.java
+4
-3
SimpleRouteLocator.java
...mework/cloud/netflix/zuul/filters/SimpleRouteLocator.java
+5
-3
TraceProxyRequestHelper.java
...k/cloud/netflix/zuul/filters/TraceProxyRequestHelper.java
+0
-3
DiscoveryClientRouteLocator.java
...x/zuul/filters/discovery/DiscoveryClientRouteLocator.java
+4
-3
FormZuulProxyApplicationTests.java
...ork/cloud/netflix/zuul/FormZuulProxyApplicationTests.java
+0
-3
FormZuulServletProxyApplicationTests.java
...ud/netflix/zuul/FormZuulServletProxyApplicationTests.java
+4
-3
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/archaius/ArchaiusAutoConfiguration.java
View file @
5b075623
...
...
@@ -38,6 +38,8 @@ import org.apache.commons.configuration.SystemConfiguration;
import
org.apache.commons.configuration.event.ConfigurationEvent
;
import
org.apache.commons.configuration.event.ConfigurationListener
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.condition.ConditionalOnEnabledEndpoint
;
import
org.springframework.boot.actuate.endpoint.Endpoint
;
...
...
@@ -60,18 +62,17 @@ import static com.netflix.config.ConfigurationManager.ENV_CONFIG_NAME;
import
static
com
.
netflix
.
config
.
ConfigurationManager
.
SYS_CONFIG_NAME
;
import
static
com
.
netflix
.
config
.
ConfigurationManager
.
URL_CONFIG_NAME
;
import
lombok.extern.apachecommons.CommonsLog
;
/**
* @author Spencer Gibb
*/
@Configuration
@ConditionalOnClass
({
ConcurrentCompositeConfiguration
.
class
,
ConfigurationBuilder
.
class
})
@CommonsLog
@AutoConfigureOrder
(
Ordered
.
HIGHEST_PRECEDENCE
)
public
class
ArchaiusAutoConfiguration
{
private
static
final
Log
log
=
LogFactory
.
getLog
(
ArchaiusAutoConfiguration
.
class
);
private
static
final
AtomicBoolean
initialized
=
new
AtomicBoolean
(
false
);
@Autowired
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/feign/support/ResponseEntityDecoder.java
View file @
5b075623
...
...
@@ -14,14 +14,12 @@ import org.springframework.util.MultiValueMap;
import
feign.FeignException
;
import
feign.Response
;
import
feign.codec.Decoder
;
import
lombok.extern.slf4j.Slf4j
;
/**
* Decoder adds compatibility for Spring MVC's ResponseEntity to any other decoder via
* composition.
* @author chadjaros
*/
@Slf4j
public
class
ResponseEntityDecoder
implements
Decoder
{
private
Decoder
decoder
;
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/feign/support/SpringEncoder.java
View file @
5b075623
...
...
@@ -23,6 +23,8 @@ import java.lang.reflect.Type;
import
java.nio.charset.Charset
;
import
java.util.Collection
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.ObjectFactory
;
import
org.springframework.boot.autoconfigure.web.HttpMessageConverters
;
import
org.springframework.http.HttpHeaders
;
...
...
@@ -34,7 +36,6 @@ import org.springframework.http.converter.HttpMessageConverter;
import
feign.RequestTemplate
;
import
feign.codec.EncodeException
;
import
feign.codec.Encoder
;
import
lombok.extern.apachecommons.CommonsLog
;
import
static
org
.
springframework
.
cloud
.
netflix
.
feign
.
support
.
FeignUtils
.
getHeaders
;
import
static
org
.
springframework
.
cloud
.
netflix
.
feign
.
support
.
FeignUtils
.
getHttpHeaders
;
...
...
@@ -42,9 +43,10 @@ import static org.springframework.cloud.netflix.feign.support.FeignUtils.getHttp
/**
* @author Spencer Gibb
*/
@CommonsLog
public
class
SpringEncoder
implements
Encoder
{
private
static
final
Log
log
=
LogFactory
.
getLog
(
SpringEncoder
.
class
);
private
ObjectFactory
<
HttpMessageConverters
>
messageConverters
;
public
SpringEncoder
(
ObjectFactory
<
HttpMessageConverters
>
messageConverters
)
{
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/metrics/servo/ServoMonitorCache.java
View file @
5b075623
...
...
@@ -19,16 +19,18 @@ import java.util.Map;
import
com.netflix.servo.MonitorRegistry
;
import
com.netflix.servo.monitor.BasicTimer
;
import
com.netflix.servo.monitor.MonitorConfig
;
import
lombok.extern.apachecommons.CommonsLog
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
/**
* Servo does not provide a mechanism to retrieve an existing monitor by name + tags.
*
* @author Jon Schneider
*/
@CommonsLog
public
class
ServoMonitorCache
{
private
static
final
Log
log
=
LogFactory
.
getLog
(
ServoMonitorCache
.
class
);
private
final
Map
<
MonitorConfig
,
BasicTimer
>
timerCache
=
new
HashMap
<>();
private
final
MonitorRegistry
monitorRegistry
;
private
final
ServoMetricsConfigBean
config
;
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/ZuulFilterInitializer.java
View file @
5b075623
...
...
@@ -22,6 +22,8 @@ import java.util.Map;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PreDestroy
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.util.ReflectionUtils
;
import
com.netflix.zuul.FilterLoader
;
...
...
@@ -30,17 +32,16 @@ import com.netflix.zuul.filters.FilterRegistry;
import
com.netflix.zuul.monitoring.CounterFactory
;
import
com.netflix.zuul.monitoring.TracerFactory
;
import
lombok.extern.apachecommons.CommonsLog
;
/**
* Initializes various Zuul components including {@link ZuulFilter}.
*
* @author Spencer Gibb
*
*/
@CommonsLog
public
class
ZuulFilterInitializer
{
private
static
final
Log
log
=
LogFactory
.
getLog
(
ZuulFilterInitializer
.
class
);
private
final
Map
<
String
,
ZuulFilter
>
filters
;
private
final
CounterFactory
counterFactory
;
private
final
TracerFactory
tracerFactory
;
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/ProxyRequestHelper.java
View file @
5b075623
...
...
@@ -31,6 +31,8 @@ import java.util.Set;
import
javax.servlet.http.HttpServletRequest
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.cloud.netflix.zuul.util.RequestUtils
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.util.LinkedMultiValueMap
;
...
...
@@ -46,16 +48,15 @@ import static org.springframework.cloud.netflix.zuul.filters.support.FilterConst
import
static
org
.
springframework
.
http
.
HttpHeaders
.
CONTENT_ENCODING
;
import
static
org
.
springframework
.
http
.
HttpHeaders
.
CONTENT_LENGTH
;
import
lombok.extern.apachecommons.CommonsLog
;
/**
* @author Dave Syer
* @author Marcos Barbero
* @author Spencer Gibb
*/
@CommonsLog
public
class
ProxyRequestHelper
{
private
static
final
Log
log
=
LogFactory
.
getLog
(
ProxyRequestHelper
.
class
);
/**
* Zuul context key for a collection of ignored headers for the current request.
* Pre-filters can set this up as a set of lowercase strings.
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/SimpleRouteLocator.java
View file @
5b075623
...
...
@@ -24,6 +24,8 @@ import java.util.Map;
import
java.util.Map.Entry
;
import
java.util.concurrent.atomic.AtomicReference
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.cloud.netflix.zuul.filters.ZuulProperties.ZuulRoute
;
import
org.springframework.cloud.netflix.zuul.util.RequestUtils
;
import
org.springframework.core.Ordered
;
...
...
@@ -31,15 +33,15 @@ import org.springframework.util.AntPathMatcher;
import
org.springframework.util.PathMatcher
;
import
org.springframework.util.StringUtils
;
import
lombok.extern.apachecommons.CommonsLog
;
/**
* Simple {@link RouteLocator} based on configuration data held in {@link ZuulProperties}.
*
* @author Dave Syer
*/
@CommonsLog
public
class
SimpleRouteLocator
implements
RouteLocator
,
Ordered
{
private
static
final
Log
log
=
LogFactory
.
getLog
(
SimpleRouteLocator
.
class
);
private
static
final
int
DEFAULT_ORDER
=
0
;
private
ZuulProperties
properties
;
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/TraceProxyRequestHelper.java
View file @
5b075623
...
...
@@ -32,12 +32,9 @@ import org.springframework.util.MultiValueMap;
import
com.netflix.zuul.context.RequestContext
;
import
lombok.extern.apachecommons.CommonsLog
;
/**
* @author Spencer Gibb
*/
@CommonsLog
public
class
TraceProxyRequestHelper
extends
ProxyRequestHelper
{
private
TraceRepository
traces
;
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/discovery/DiscoveryClientRouteLocator.java
View file @
5b075623
...
...
@@ -21,6 +21,8 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map.Entry
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.cloud.client.ServiceInstance
;
import
org.springframework.cloud.client.discovery.DiscoveryClient
;
import
org.springframework.cloud.netflix.zuul.filters.RefreshableRouteLocator
;
...
...
@@ -31,8 +33,6 @@ import org.springframework.cloud.netflix.zuul.filters.ZuulProperties.ZuulRoute;
import
org.springframework.util.PatternMatchUtils
;
import
org.springframework.util.StringUtils
;
import
lombok.extern.apachecommons.CommonsLog
;
/**
* A {@link RouteLocator} that combines static, configured routes with those from a
* {@link DiscoveryClient}. The discovery client takes precedence.
...
...
@@ -40,10 +40,11 @@ import lombok.extern.apachecommons.CommonsLog;
* @author Spencer Gibb
* @author Dave Syer
*/
@CommonsLog
public
class
DiscoveryClientRouteLocator
extends
SimpleRouteLocator
implements
RefreshableRouteLocator
{
private
static
final
Log
log
=
LogFactory
.
getLog
(
DiscoveryClientRouteLocator
.
class
);
public
static
final
String
DEFAULT_ROUTE
=
"/**"
;
private
DiscoveryClient
discovery
;
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/FormZuulProxyApplicationTests.java
View file @
5b075623
...
...
@@ -66,8 +66,6 @@ import static org.junit.Assert.assertEquals;
import
static
org
.
springframework
.
cloud
.
netflix
.
zuul
.
filters
.
support
.
FilterConstants
.
PRE_TYPE
;
import
static
org
.
springframework
.
util
.
StreamUtils
.
copyToString
;
import
lombok.extern.slf4j.Slf4j
;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
FormZuulProxyApplication
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
,
value
=
{
"zuul.routes.simple:/simple/**"
})
...
...
@@ -228,7 +226,6 @@ public class FormZuulProxyApplicationTests {
@RibbonClients
({
@RibbonClient
(
name
=
"simple"
,
configuration
=
FormRibbonClientConfiguration
.
class
),
@RibbonClient
(
name
=
"psimple"
,
configuration
=
FormRibbonClientConfiguration
.
class
)
})
@Slf4j
class
FormZuulProxyApplication
{
@RequestMapping
(
value
=
"/form"
,
method
=
RequestMethod
.
POST
)
...
...
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/zuul/FormZuulServletProxyApplicationTests.java
View file @
5b075623
...
...
@@ -25,6 +25,8 @@ import com.netflix.loadbalancer.ServerList;
import
com.netflix.zuul.ZuulFilter
;
import
com.netflix.zuul.context.RequestContext
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.junit.After
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
@@ -63,8 +65,6 @@ import org.springframework.web.multipart.MultipartFile;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
springframework
.
cloud
.
netflix
.
zuul
.
filters
.
support
.
FilterConstants
.
PRE_TYPE
;
import
lombok.extern.slf4j.Slf4j
;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
FormZuulServletProxyApplication
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
,
value
=
"zuul.routes.simple:/simple/**"
)
@DirtiesContext
...
...
@@ -145,9 +145,10 @@ public class FormZuulServletProxyApplicationTests {
@RestController
@EnableZuulProxy
@RibbonClients
(
@RibbonClient
(
name
=
"simple"
,
configuration
=
ServletFormRibbonClientConfiguration
.
class
))
@Slf4j
class
FormZuulServletProxyApplication
{
private
static
final
Log
log
=
LogFactory
.
getLog
(
FormZuulServletProxyApplication
.
class
);
@RequestMapping
(
value
=
"/form"
,
method
=
RequestMethod
.
POST
)
public
String
accept
(
@RequestParam
MultiValueMap
<
String
,
String
>
form
)
throws
IOException
{
...
...
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