This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 419f491974 NIFI-15397 Changed Content SHA not found log from warn to
debug for Git Clients (#10701)
419f491974 is described below
commit 419f491974adbeedcadfe8c9a03f597ce757e2fa
Author: Pierre Villard <[email protected]>
AuthorDate: Mon Dec 29 17:08:04 2025 +0100
NIFI-15397 Changed Content SHA not found log from warn to debug for Git
Clients (#10701)
Signed-off-by: David Handermann <[email protected]>
---
.../org/apache/nifi/azure/devops/AzureDevOpsRepositoryClient.java | 4 ++--
.../src/main/java/org/apache/nifi/github/GitHubRepositoryClient.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/nifi-extension-bundles/nifi-azure-bundle/nifi-azure-registry-clients/src/main/java/org/apache/nifi/azure/devops/AzureDevOpsRepositoryClient.java
b/nifi-extension-bundles/nifi-azure-bundle/nifi-azure-registry-clients/src/main/java/org/apache/nifi/azure/devops/AzureDevOpsRepositoryClient.java
index 09763cb506..9d76adf98c 100644
---
a/nifi-extension-bundles/nifi-azure-bundle/nifi-azure-registry-clients/src/main/java/org/apache/nifi/azure/devops/AzureDevOpsRepositoryClient.java
+++
b/nifi-extension-bundles/nifi-azure-bundle/nifi-azure-registry-clients/src/main/java/org/apache/nifi/azure/devops/AzureDevOpsRepositoryClient.java
@@ -340,7 +340,7 @@ public class AzureDevOpsRepositoryClient implements
GitRepositoryClient {
final JsonNode response = executeGetAllowingNotFound(uri);
if (response == null) {
- logger.warn("Unable to get content SHA for [{}] from branch [{}]
because content does not exist", resolvedPath, branch);
+ logger.debug("Unable to get content SHA for [{}] from branch [{}]
because content does not exist", resolvedPath, branch);
return Optional.empty();
}
@@ -348,7 +348,7 @@ public class AzureDevOpsRepositoryClient implements
GitRepositoryClient {
if (values != null && values.size() > 0) {
return
Optional.ofNullable(values.get(0).get(JSON_FIELD_COMMIT_ID)).map(JsonNode::asText);
} else {
- logger.warn("Unable to get content SHA for [{}] from branch [{}]
because no commits were found", resolvedPath, branch);
+ logger.debug("Unable to get content SHA for [{}] from branch [{}]
because no commits were found", resolvedPath, branch);
return Optional.empty();
}
}
diff --git
a/nifi-extension-bundles/nifi-github-bundle/nifi-github-extensions/src/main/java/org/apache/nifi/github/GitHubRepositoryClient.java
b/nifi-extension-bundles/nifi-github-bundle/nifi-github-extensions/src/main/java/org/apache/nifi/github/GitHubRepositoryClient.java
index 942dc708ac..f4ef6a0fe4 100644
---
a/nifi-extension-bundles/nifi-github-bundle/nifi-github-extensions/src/main/java/org/apache/nifi/github/GitHubRepositoryClient.java
+++
b/nifi-extension-bundles/nifi-github-bundle/nifi-github-extensions/src/main/java/org/apache/nifi/github/GitHubRepositoryClient.java
@@ -392,7 +392,7 @@ public class GitHubRepositoryClient implements
GitRepositoryClient {
final GHContent ghContent =
repository.getFileContent(resolvedPath, branchRef);
return Optional.of(ghContent.getSha());
} catch (final FileNotFoundException e) {
- logger.warn("Unable to get content SHA for [{}] from branch
[{}] because content does not exist", resolvedPath, branch);
+ logger.debug("Unable to get content SHA for [{}] from branch
[{}] because content does not exist", resolvedPath, branch);
return Optional.empty();
}
});