aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_meta_tail.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/filer_meta_tail.go')
-rw-r--r--weed/command/filer_meta_tail.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/weed/command/filer_meta_tail.go b/weed/command/filer_meta_tail.go
index a433d1b07..58a496ff4 100644
--- a/weed/command/filer_meta_tail.go
+++ b/weed/command/filer_meta_tail.go
@@ -2,8 +2,8 @@ package command
import (
"fmt"
+ "github.com/seaweedfs/seaweedfs/weed/filer"
"github.com/seaweedfs/seaweedfs/weed/pb"
- "google.golang.org/protobuf/jsonpb"
"os"
"path/filepath"
"strings"
@@ -88,11 +88,8 @@ func runFilerMetaTail(cmd *Command, args []string) bool {
return false
}
- jsonpbMarshaler := jsonpb.Marshaler{
- EmitDefaults: false,
- }
eachEntryFunc := func(resp *filer_pb.SubscribeMetadataResponse) error {
- jsonpbMarshaler.Marshal(os.Stdout, resp)
+ filer.ProtoToText(os.Stdout, resp)
fmt.Fprintln(os.Stdout)
return nil
}