Skip to content

Commit

Permalink
Use info level log for not found or conflict errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertIndie committed Feb 6, 2025
1 parent 6d6b4fe commit 2b702dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ && pulsar().getConfig().isCreateTopicToRemoteClusterForReplication()) {
})
.exceptionally(ex -> {
if (AdminResource.isConflictException(ex)) {
log.warn("[{}] Failed to create partitioned topic {}: {}", clientAppId(), topicName,
log.info("[{}] Failed to create partitioned topic {}: {}", clientAppId(), topicName,
ex.getMessage());
} else {
log.error("[{}] Failed to create partitioned topic {}", clientAppId(), topicName, ex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void getPolicies(@Suspended AsyncResponse response,
.thenAccept(response::resume)
.exceptionally(ex -> {
if (AdminResource.isNotFoundOrConflictException(ex)) {
log.warn("Failed to get policies for namespace {}: {}", namespaceName, ex.getMessage());
log.info("Failed to get policies for namespace {}: {}", namespaceName, ex.getMessage());
} else {
log.error("Failed to get policies for namespace {}", namespaceName, ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ public void getPartitionedMetadata(
Throwable t = FutureUtil.unwrapCompletionException(ex);
if (!isRedirectException(t)) {
if (AdminResource.isNotFoundException(t)) {
log.warn("[{}] Failed to get partitioned metadata topic {}: {}",
log.info("[{}] Failed to get partitioned metadata topic {}: {}",
clientAppId(), topicName, ex.getMessage());
} else {
log.error("[{}] Failed to get partitioned metadata topic {}",
Expand Down

0 comments on commit 2b702dd

Please sign in to comment.