Skip to content

Commit 51f6152

Browse files
Martin VigliaroloMartin Vigliarolo
authored andcommitted
Changed way of declaring log in HttpClient
1 parent 6c8d6b8 commit 51f6152

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

java/src/main/java/com/genexus/specific/java/HttpClient.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
import com.genexus.CommonUtil;
66
import com.genexus.common.interfaces.IExtensionHttpClient;
77
import com.genexus.internet.HttpClientJavaLib;
8-
import org.apache.logging.log4j.Logger;
98

109
import javax.net.ssl.SSLSocket;
1110

1211
public class HttpClient implements IExtensionHttpClient {
1312

14-
// private static Logger logger = org.apache.logging.log4j.LogManager.getLogger(HttpClient.class);
15-
1613
@Override
1714
public void addSDHeaders(String host, String baseURL, Hashtable<String, String> headersToSend) {
1815

@@ -48,8 +45,7 @@ public com.genexus.internet.IHttpClient initHttpClientImpl() {
4845
client = new HttpClientJavaLib();
4946

5047
} catch (ClassNotFoundException e) {
51-
// logger.error("HttpClient jars not detected. Check if httpclient-4.5.*.jar and httpcore-4.4.*.jar are added in the classpath");
52-
48+
org.apache.logging.log4j.LogManager.getLogger(GXutil.class).error("HttpClient jars not detected. Check if httpclient-4.5.*.jar and httpcore-4.4.*.jar are added in the classpath",e);
5349
} finally {
5450

5551
return client;

0 commit comments

Comments
 (0)