aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_mq_topic_create.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_mq_topic_create.go')
-rw-r--r--weed/shell/command_mq_topic_create.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/shell/command_mq_topic_create.go b/weed/shell/command_mq_topic_create.go
index b09f94451..d1b1bdd23 100644
--- a/weed/shell/command_mq_topic_create.go
+++ b/weed/shell/command_mq_topic_create.go
@@ -2,6 +2,7 @@ package shell
import (
"context"
+ "encoding/json"
"flag"
"fmt"
"github.com/seaweedfs/seaweedfs/weed/pb"
@@ -58,7 +59,8 @@ func (c *commandMqTopicCreate) Do(args []string, commandEnv *CommandEnv, writer
if err != nil {
return err
}
- fmt.Fprintf(writer, "response: %+v\n", resp)
+ output, _ := json.MarshalIndent(resp, "", " ")
+ fmt.Fprintf(writer, "response:\n%+v\n", string(output))
return nil
})