From 062f8352a2e19dfccf832bfcf8f95769d1df8912 Mon Sep 17 00:00:00 2001 From: Vince Angelo Batecan Date: Tue, 25 Jun 2024 11:03:56 +0800 Subject: [PATCH] fixes #283 --- src/com/wakatime/intellij/plugin/WakaTime.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/com/wakatime/intellij/plugin/WakaTime.java b/src/com/wakatime/intellij/plugin/WakaTime.java index 0641ce72..380f988e 100644 --- a/src/com/wakatime/intellij/plugin/WakaTime.java +++ b/src/com/wakatime/intellij/plugin/WakaTime.java @@ -20,6 +20,7 @@ //import com.intellij.openapi.compiler.CompilerTopics; import com.intellij.openapi.application.ApplicationNamesInfo; import com.intellij.openapi.components.ApplicationComponent; +import com.intellij.openapi.diagnostic.LogLevel; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.editor.*; import com.intellij.openapi.extensions.PluginId; @@ -36,7 +37,7 @@ import com.intellij.util.concurrency.AppExecutorUtil; import com.intellij.util.messages.MessageBusConnection; import com.intellij.util.net.HttpConfigurable; -import org.apache.log4j.Level; +//import org.apache.log4j.Level; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -582,10 +583,10 @@ public static void setupStatusBar() { public static void setLoggingLevel() { try { if (WakaTime.DEBUG) { - log.setLevel(Level.DEBUG); + log.setLevel(LogLevel.DEBUG); log.debug("Logging level set to DEBUG"); } else { - log.setLevel(Level.INFO); + log.setLevel(LogLevel.INFO); } } catch(Throwable e) { System.out.println(e.getStackTrace()); @@ -815,4 +816,4 @@ public static void errorException(Exception e) { public String getComponentName() { return "WakaTime"; } -} +} \ No newline at end of file