Skip to content

Commit

Permalink
Cleaning up rider warning
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Aug 11, 2023
1 parent 4564ad8 commit 93c55a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 2 additions & 0 deletions Src/CSharpier.Rider/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ pluginSinceBuild = 203

# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = RD
# trying to change this to a higher version results in builds that don't work, but it isn't clear why. The only reason to go
# to higher versions seems to be to get deprecated notices, so things are probably fine as is for now.
platformVersion = 2021.2.1

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
package com.intellij.csharpier;

import com.intellij.openapi.diagnostic.Logger;
import org.apache.log4j.Level;

public class CSharpierLogger {
private final static Logger logger = createLogger();

private static Logger createLogger() {
var logger = Logger.getInstance(CSharpierLogger.class);
if ("1".equals(System.getenv("DEBUG"))) {
logger.setLevel(Level.DEBUG);
}

return logger;
}
private final static Logger logger = Logger.getInstance(CSharpierLogger.class);

public static Logger getInstance() {
return logger;
Expand Down

0 comments on commit 93c55a1

Please sign in to comment.