From 3c69805f76519493a655b1deda68a74a5fc20ab5 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 2 Nov 2026 12:12:44 -0800 Subject: [PATCH] shell: keep the gRPC port in the printed volume.delete command ServerAddress.String() drops a custom gRPC port, so the printed -node would dial the HTTP port plus 10000. Print the full address. Co-Authored-By: Claude Opus 5.5 --- weed/shell/command_volume_delete_empty.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/shell/command_volume_delete_empty.go b/weed/shell/command_volume_delete_empty.go index 68f6f7e09f..572f301595 100644 --- a/weed/shell/command_volume_delete_empty.go +++ b/weed/shell/command_volume_delete_empty.go @@ -107,7 +107,7 @@ func (c *commandVolumeDeleteEmpty) Do(args []string, commandEnv *CommandEnv, wri // a rerun skips the survivors as under-replicated if len(kept) < len(replicas) { for _, server := range kept { - log.Printf("volume %d stays on %s after its other copies were deleted; once it is empty, remove it with volume.delete -node %s -volumeId %d", vid, server, server, vid) + log.Printf("volume %d stays on %s after its other copies were deleted; once it is empty, remove it with volume.delete -node %s -volumeId %d", vid, server, string(server), vid) } } }