Skip to content

Commit

Permalink
fixes wakatime#283
Browse files Browse the repository at this point in the history
  • Loading branch information
llTheBlankll committed Jun 25, 2024
1 parent 8d6619e commit 0b8708e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/com/wakatime/intellij/plugin/WakaTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.intellij.openapi.application.ApplicationNamesInfo;
import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.diagnostic.LogLevel;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.EditorFactory;
Expand All @@ -38,7 +39,6 @@
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.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down Expand Up @@ -580,10 +580,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());
Expand Down Expand Up @@ -767,4 +767,4 @@ public static void errorException(Exception e) {
public String getComponentName() {
return "WakaTime";
}
}
}

0 comments on commit 0b8708e

Please sign in to comment.