summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--internal/discovery/discovery.go2
5 files changed, 17 insertions, 5 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
diff --git a/internal/discovery/discovery.go b/internal/discovery/discovery.go
index 1090ea9..3608ce7 100644
--- a/internal/discovery/discovery.go
+++ b/internal/discovery/discovery.go
@@ -160,7 +160,7 @@ func (d *Discovery) dedupList(servers []string) (deduped []string) {
}
}
- logger.Info("Deduped server list", len(servers), len(deduped))
+ logger.Debug("Deduped server list", len(servers), len(deduped))
return
}