Skip to content

Commit 78dfa50

Browse files
committed
SQL: Fix logger in LocalH2-based tests
1 parent e5fd7f4 commit 78dfa50

File tree

1 file changed

+3
-3
lines changed
  • x-pack/plugin/sql/qa/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc

1 file changed

+3
-3
lines changed

x-pack/plugin/sql/qa/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/LocalH2.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
*/
66
package org.elasticsearch.xpack.sql.qa.jdbc;
77

8+
import org.apache.logging.log4j.LogManager;
89
import org.apache.logging.log4j.Logger;
910
import org.elasticsearch.common.CheckedConsumer;
1011
import org.elasticsearch.common.CheckedSupplier;
1112
import org.elasticsearch.common.SuppressForbidden;
12-
import org.elasticsearch.common.logging.Loggers;
1313
import org.junit.rules.ExternalResource;
1414

1515
import java.sql.Connection;
@@ -20,7 +20,7 @@
2020
import java.util.Properties;
2121

2222
public class LocalH2 extends ExternalResource implements CheckedSupplier<Connection, SQLException> {
23-
private final Logger logger = Loggers.getLogger(getClass());
23+
private final Logger logger = LogManager.getLogger(getClass());
2424

2525
/*
2626
* The syntax on the connection string is fairly particular:
@@ -100,4 +100,4 @@ protected void after() {
100100
public Connection get() throws SQLException {
101101
return DriverManager.getConnection(url, DEFAULTS);
102102
}
103-
}
103+
}

0 commit comments

Comments
 (0)