File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/io/securecodebox/persistence/defectdojo/http Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 66
77import io .securecodebox .persistence .defectdojo .config .Config ;
88import lombok .NonNull ;
9+ import lombok .extern .slf4j .Slf4j ;
910import org .apache .http .HttpHost ;
1011import org .apache .http .auth .AuthScope ;
1112import org .apache .http .auth .Credentials ;
2425/**
2526 * Placeholder to move duplicated code, will be named better later
2627 */
28+ @ Slf4j
2729public final class Foo {
2830 private final Config config ;
2931 private final ProxyConfig proxyConfig ;
@@ -44,8 +46,7 @@ public HttpHeaders generateAuthorizationHeaders() {
4446 headers .set (HttpHeaders .AUTHORIZATION , "Token " + this .config .getApiKey ());
4547
4648 if (proxyConfig .isComplete ()) {
47- // FIXME: System.out logging is a real bad code smell. Standard loging should be used.
48- System .out .println ("Setting Proxy Auth Header..." );
49+ log .info ("Setting Proxy Auth Header..." );
4950 headers .set (HttpHeaders .PROXY_AUTHORIZATION , "Basic " + encodeProxyCredentials (proxyConfig ));
5051 }
5152
You can’t perform that action at this time.
0 commit comments