From a814f3f0a80ac511132bd3ac97356f333f128b1c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 25 Sep 2021 01:04:51 -0700 Subject: [PATCH] adjust metadata tail output --- weed/command/filer_meta_tail.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weed/command/filer_meta_tail.go b/weed/command/filer_meta_tail.go index 85a3eaf84..cff39fe49 100644 --- a/weed/command/filer_meta_tail.go +++ b/weed/command/filer_meta_tail.go @@ -71,12 +71,12 @@ func runFilerMetaTail(cmd *Command, args []string) bool { } shouldPrint := func(resp *filer_pb.SubscribeMetadataResponse) bool { - if filterFunc == nil { - return true - } if resp.EventNotification.OldEntry == nil && resp.EventNotification.NewEntry == nil { return false } + if filterFunc == nil { + return true + } if resp.EventNotification.OldEntry != nil && filterFunc(resp.Directory, resp.EventNotification.OldEntry.Name) { return true }