Skip to content

Commit

Permalink
refine logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwarz-eitco-de committed Jun 18, 2024
1 parent da1e420 commit 581bd17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/de/eitco/cicd/dotnet/AbstractDotnetMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected File createLocalNugetRepositoryDirectory() throws MojoExecutionExcepti

File localNugetRepository = getResolvedNugetRepoDirectory();

getLog().info("creating directory " + localNugetRepository.getAbsolutePath());
getLog().debug("creating directory " + localNugetRepository.getAbsolutePath());
FileUtils.forceMkdir(localNugetRepository);

return localNugetRepository;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/de/eitco/cicd/dotnet/DotnetExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ public void upsertNugetSource(String url, String sourceName, String username, St

private void enforceConfigFileExists(File configFile) throws MojoExecutionException {

log.info("enforcing file " + configFile);
log.debug("enforcing file " + configFile);

if (configFile.exists()) {

log.info(configFile + " exists");
log.debug(configFile + " exists");
return;
}

Expand All @@ -256,7 +256,7 @@ private void enforceConfigFileExists(File configFile) throws MojoExecutionExcept

byte[] bytes = resourceAsStream.readAllBytes();

log.info("writing " + new String(bytes, StandardCharsets.UTF_8) + "\n to file " + configFile);
log.debug("writing " + new String(bytes, StandardCharsets.UTF_8) + "\n to file " + configFile);

Files.write(configFile.toPath(), bytes);

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/eitco/cicd/dotnet/InstallMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public void execute() throws MojoExecutionException {

if (files == null) {

getLog().info("target directory does not exist");
getLog().debug("target directory does not exist");
return;
}

if (files.length == 0) {

getLog().info("target directory is empty");
getLog().debug("target directory is empty");
}

File localNugetRepository = createLocalNugetRepositoryDirectory();
Expand Down

0 comments on commit 581bd17

Please sign in to comment.