summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index ba9579b..566c957 100644
--- a/main.go
+++ b/main.go
@@ -602,7 +602,9 @@ func main() {
}
fmt.Fprintf(os.Stderr, "Starting fbtracert with %d probes per second/ttl, base src port %d and with the port span of %d\n", *probeRate, *baseSrcPort, *maxSrcPorts)
- fmt.Fprintf(os.Stderr, "Use '-logtostderr=true' cmd line option to see GLOG output\n")
+ if flag.Lookup("logtostderr").Value.String() != "true" {
+ fmt.Fprintf(os.Stderr, "Use '-logtostderr=true' cmd line option to see GLOG output\n")
+ }
// this will catch senders quitting - we have one sender per ttl
senderDone := make([]chan struct{}, *maxTTL)