Skip to content

Commit

Permalink
renamed constant to satisfy Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
alexradzin committed May 6, 2024
1 parent d4e2028 commit 214563d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/firebolt/jdbc/util/LoggerUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
@UtilityClass
public class LoggerUtil {

private static final boolean slf4jAvailable = isSlf4jJAvailable();
private static final boolean SLF4J_AVAILABLE = isSlf4jJAvailable();
private static final Logger root = initRootLogger();
private static final Logger log = Logger.getLogger(LoggerUtil.class.getName());

private Logger initRootLogger() {
Logger parent = Logger.getLogger(FireboltDriver.class.getPackageName());
if (slf4jAvailable) {
if (SLF4J_AVAILABLE) {
synchronized (LoggerUtil.class) {
parent.addHandler(new SLF4JBridgeHandler());
parent.setLevel(Level.ALL);
Expand Down

0 comments on commit 214563d

Please sign in to comment.