summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dcat/main.go5
-rw-r--r--cmd/dgrep/main.go5
-rw-r--r--cmd/dmap/main.go5
-rw-r--r--cmd/dtail/main.go5
4 files changed, 16 insertions, 4 deletions
diff --git a/cmd/dcat/main.go b/cmd/dcat/main.go
index c59a242..238f97a 100644
--- a/cmd/dcat/main.go
+++ b/cmd/dcat/main.go
@@ -49,7 +49,10 @@ func main() {
}
ctx := context.TODO()
- logger.Start(ctx, logger.Modes{Debug: debugEnable || config.Common.DebugEnable})
+ logger.Start(ctx, logger.Modes{
+ Debug: debugEnable || config.Common.DebugEnable,
+ Quiet: args.Quiet,
+ })
client, err := clients.NewCatClient(args)
if err != nil {
diff --git a/cmd/dgrep/main.go b/cmd/dgrep/main.go
index 276dff4..4da1bb3 100644
--- a/cmd/dgrep/main.go
+++ b/cmd/dgrep/main.go
@@ -53,7 +53,10 @@ func main() {
}
ctx := context.TODO()
- logger.Start(ctx, logger.Modes{Debug: debugEnable || config.Common.DebugEnable})
+ logger.Start(ctx, logger.Modes{
+ Debug: debugEnable || config.Common.DebugEnable,
+ Quiet: args.Quiet,
+ })
if grep != "" {
args.RegexStr = grep
diff --git a/cmd/dmap/main.go b/cmd/dmap/main.go
index a954e45..1a05549 100644
--- a/cmd/dmap/main.go
+++ b/cmd/dmap/main.go
@@ -56,7 +56,10 @@ func main() {
}
ctx := context.TODO()
- logger.Start(ctx, logger.Modes{Debug: debugEnable || config.Common.DebugEnable})
+ logger.Start(ctx, logger.Modes{
+ Debug: debugEnable || config.Common.DebugEnable,
+ Quiet: args.Quiet,
+ })
client, err := clients.NewMaprClient(args, queryStr, clients.DefaultMode)
if err != nil {
diff --git a/cmd/dtail/main.go b/cmd/dtail/main.go
index e41d675..f2a039f 100644
--- a/cmd/dtail/main.go
+++ b/cmd/dtail/main.go
@@ -84,7 +84,10 @@ func main() {
os.Exit(healthClient.Start(ctx))
}
- logger.Start(ctx, logger.Modes{Debug: debugEnable || config.Common.DebugEnable})
+ logger.Start(ctx, logger.Modes{
+ Debug: debugEnable || config.Common.DebugEnable,
+ Quiet: args.Quiet,
+ })
if pprof > -1 {
// For debugging purposes only