summaryrefslogtreecommitdiff
path: root/cmd/dmap
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2020-09-10 14:57:52 +0100
committerPaul Buetow <pbuetow@mimecast.com>2020-09-10 14:57:52 +0100
commit1c7c0dbb5174b5255912183b9ec5870ccdef3426 (patch)
tree50a5e492ac42221178320fb06a16c34e1b0a4bba /cmd/dmap
parent40cbef0c243042521bdf589b3c4549ff32508592 (diff)
printing client stats every other second only if the connection count has changed or when SIGUSR1 or SIGINFO recieved
Diffstat (limited to 'cmd/dmap')
-rw-r--r--cmd/dmap/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dmap/main.go b/cmd/dmap/main.go
index 470ce76..279b343 100644
--- a/cmd/dmap/main.go
+++ b/cmd/dmap/main.go
@@ -9,6 +9,7 @@ import (
"github.com/mimecast/dtail/internal/color"
"github.com/mimecast/dtail/internal/config"
"github.com/mimecast/dtail/internal/io/logger"
+ "github.com/mimecast/dtail/internal/io/signal"
"github.com/mimecast/dtail/internal/omode"
"github.com/mimecast/dtail/internal/user"
"github.com/mimecast/dtail/internal/version"
@@ -61,7 +62,7 @@ func main() {
panic(err)
}
- status := client.Start(ctx)
+ status := client.Start(ctx, signal.StatsCh(ctx))
logger.Flush()
os.Exit(status)
}