Skip to content

Commit

Permalink
Merge pull request #7 from embulk/change-loglevels-with-lifecycle
Browse files Browse the repository at this point in the history
Change the loglevels of the log messages (info -> lifecycle, debug -> info)
  • Loading branch information
dmikurube authored May 29, 2024
2 parents 200e1f9 + 325ec8b commit 4e0b8f1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ private void fromArtifact(final ResolvedArtifactResult resolvedArtifactResult, f

if (id instanceof ModuleComponentIdentifier) {
final Path modulePath = moduleToPath((ModuleComponentIdentifier) id);
this.logger.info("Setting to copy {}:{} into {}", id, artifactType, modulePath);
this.logger.debug("Cached file: {}", file);
this.logger.lifecycle("Setting to copy {}:{} into {}", id, artifactType, modulePath);
this.logger.info("Cached file: {}", file);
this.from(file, copy -> {
copy.into(modulePath.toFile());
copy.setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE);
Expand Down Expand Up @@ -148,14 +148,14 @@ private static Path moduleToPath(final ModuleComponentIdentifier id) {
// https://github.com/gradle/gradle/blob/v8.4.0/subprojects/dependency-management/src/main/java/org/gradle/api/internal/notations/DependencyStringNotationConverter.java
private Dependency dependencyFromCharSequence(final CharSequence dependencyNotation) {
final String notationString = dependencyNotation.toString();
this.logger.debug("Artifact: {}", notationString);
this.logger.info("Artifact: {}", notationString);
return this.project.getDependencies().create(notationString);
}

// https://github.com/gradle/gradle/blob/v8.4.0/subprojects/core/src/main/java/org/gradle/internal/typeconversion/MapNotationConverter.java
private Dependency dependencyFromMap(final Map dependencyNotation) {
final Map<String, String> notationMap = validateMap(dependencyNotation);
this.logger.debug("Artifact: {}", notationMap);
this.logger.info("Artifact: {}", notationMap);
return this.project.getDependencies().create(notationMap);
}

Expand Down

0 comments on commit 4e0b8f1

Please sign in to comment.