Skip to content

Commit

Permalink
fixes #283
Browse files Browse the repository at this point in the history
  • Loading branch information
llTheBlankll committed Jun 25, 2024
1 parent 65226d6 commit 062f835
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/com/wakatime/intellij/plugin/WakaTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

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

0 comments on commit 062f835

Please sign in to comment.