Skip to content

Commit

Permalink
Correct log in NamespacesBase#internalClearProperties (apache#16604)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuruguo authored Jul 15, 2022
1 parent 7821325 commit 50fc8ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2784,11 +2784,11 @@ protected void internalClearProperties(AsyncResponse asyncResponse) {
return policies;
}).thenAccept(v -> {
asyncResponse.resume(Response.noContent().build());
log.info("[{}] Successfully clear {} properties for on namespace {}", clientAppId(), clearedCount.get(),
log.info("[{}] Successfully clear {} properties on namespace {}", clientAppId(), clearedCount.get(),
namespaceName);
}).exceptionally(ex -> {
Throwable cause = ex.getCause();
log.error("[{}] Failed to remove property for key {} on namespace {}", clientAppId(), clearedCount.get(),
log.error("[{}] Failed to clear {} properties on namespace {}", clientAppId(), clearedCount.get(),
namespaceName, cause);
asyncResponse.resume(cause);
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2283,7 +2283,7 @@ public void getProperties(

@DELETE
@Path("/{tenant}/{namespace}/properties")
@ApiOperation(value = "Get property value for a given key on a namespace.")
@ApiOperation(value = "Clear properties on a given namespace.")
@ApiResponses(value = { @ApiResponse(code = 403, message = "Don't have admin permission"),
@ApiResponse(code = 404, message = "Tenant or namespace doesn't exist"), })
public void clearProperties(
Expand Down

0 comments on commit 50fc8ed

Please sign in to comment.