Skip to content

Commit

Permalink
Excavator: Migrate to the logsafe SafeLogger API
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot committed Oct 4, 2024
1 parent 5845290 commit 1fec397
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions gradle-consistent-versions-idea-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies {
compileOnly 'org.immutables:value::annotations'
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.assertj:assertj-core'
implementation 'com.palantir.safe-logging:logger'
}

grammarKit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import com.intellij.openapi.progress.ProcessCanceledException;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.progress.ProgressManager;
import com.palantir.logsafe.logger.SafeLogger;
import com.palantir.logsafe.logger.SafeLoggerFactory;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
Expand All @@ -28,11 +30,9 @@
import java.util.Optional;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class ContentsUtil {
private static final Logger log = LoggerFactory.getLogger(ContentsUtil.class);
private static final SafeLogger log = SafeLoggerFactory.get(ContentsUtil.class);

private ContentsUtil() {
// Utility class; prevent instantiation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;
import com.palantir.logsafe.logger.SafeLogger;
import com.palantir.logsafe.logger.SafeLoggerFactory;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
Expand All @@ -30,11 +32,9 @@
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class RepositoryExplorer {
private static final Logger log = LoggerFactory.getLogger(RepositoryExplorer.class);
private static final SafeLogger log = SafeLoggerFactory.get(RepositoryExplorer.class);

private final String baseUrl;
private static final Cache<DependencyGroup, List<Folder>> folderCache = Caffeine.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
import com.palantir.gradle.versions.intellij.psi.VersionPropsDependencyVersion;
import com.palantir.gradle.versions.intellij.psi.VersionPropsProperty;
import com.palantir.gradle.versions.intellij.psi.VersionPropsTypes;
import com.palantir.logsafe.logger.SafeLogger;
import com.palantir.logsafe.logger.SafeLoggerFactory;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class VersionCompletionContributor extends CompletionContributor {

private static final Logger log = LoggerFactory.getLogger(VersionCompletionContributor.class);
private static final SafeLogger log = SafeLoggerFactory.get(VersionCompletionContributor.class);

VersionCompletionContributor() {
extend(
Expand Down

0 comments on commit 1fec397

Please sign in to comment.