Skip to content

Commit ee90f18

Browse files
authored
Merge pull request #1129 from avimanyum/main
Fix log formatting
2 parents e604ebb + c2e5362 commit ee90f18

File tree

1 file changed

+3
-3
lines changed
  • dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils

1 file changed

+3
-3
lines changed

dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/PullRequests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void prepareToCreate(final Namespace ns,
3232
//If the repository has been onboarded to renovate enterprise, skip sending the DFIU PR
3333
if(ns.getBoolean(Constants.CHECK_FOR_RENOVATE)
3434
&& (isRenovateEnabled(Constants.RENOVATE_CONFIG_FILEPATHS, forkWithContentPaths.get()))) {
35-
log.info("Found a renovate configuration file in the repo %s. Skip sending DFIU PRs to this repository.", forkWithContentPaths.get().getParent().getFullName());
35+
log.info("Found a renovate configuration file in the repo {}. Skip sending DFIU PRs to this repository.", forkWithContentPaths.get().getParent().getFullName());
3636
} else {
3737
dockerfileGitHubUtil.changeDockerfiles(ns,
3838
pathToDockerfilesInParentRepo,
@@ -64,9 +64,9 @@ protected boolean isRenovateEnabled(List<String> filePaths, GitHubContentToProce
6464
//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
6565
return readJsonFromContent(fork.getParent().getFileContent(filePath)).optBoolean("enabled", true);
6666
} catch (FileNotFoundException e) {
67-
log.debug("The file with name %s not found in the repository. Exception: %s", filePath, e.getMessage());
67+
log.debug("The file with name {} not found in the repository. Exception: {}", filePath, e.getMessage());
6868
} catch (IOException e) {
69-
log.debug("Exception while trying to close a resource. Exception: %s", e.getMessage());
69+
log.debug("Exception while trying to close a resource. Exception: {}", e.getMessage());
7070
}
7171
}
7272
return false;

0 commit comments

Comments
 (0)