Skip to content

Commit

Permalink
Merge pull request #1129 from avimanyum/main
Browse files Browse the repository at this point in the history
Fix log formatting
  • Loading branch information
avimanyum authored Feb 9, 2024
2 parents e604ebb + c2e5362 commit ee90f18
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void prepareToCreate(final Namespace ns,
//If the repository has been onboarded to renovate enterprise, skip sending the DFIU PR
if(ns.getBoolean(Constants.CHECK_FOR_RENOVATE)
&& (isRenovateEnabled(Constants.RENOVATE_CONFIG_FILEPATHS, forkWithContentPaths.get()))) {
log.info("Found a renovate configuration file in the repo %s. Skip sending DFIU PRs to this repository.", forkWithContentPaths.get().getParent().getFullName());
log.info("Found a renovate configuration file in the repo {}. Skip sending DFIU PRs to this repository.", forkWithContentPaths.get().getParent().getFullName());
} else {
dockerfileGitHubUtil.changeDockerfiles(ns,
pathToDockerfilesInParentRepo,
Expand Down Expand Up @@ -64,9 +64,9 @@ protected boolean isRenovateEnabled(List<String> filePaths, GitHubContentToProce
//If the file has the key 'enabled' set to false, it indicates that while the repo has been onboarded to renovate, it has been disabled for some reason
return readJsonFromContent(fork.getParent().getFileContent(filePath)).optBoolean("enabled", true);
} catch (FileNotFoundException e) {
log.debug("The file with name %s not found in the repository. Exception: %s", filePath, e.getMessage());
log.debug("The file with name {} not found in the repository. Exception: {}", filePath, e.getMessage());
} catch (IOException e) {
log.debug("Exception while trying to close a resource. Exception: %s", e.getMessage());
log.debug("Exception while trying to close a resource. Exception: {}", e.getMessage());
}
}
return false;
Expand Down

0 comments on commit ee90f18

Please sign in to comment.