summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCodey Oxley <coxley@users.noreply.github.com>2016-11-07 16:06:02 -0800
committerGitHub <noreply@github.com>2016-11-07 16:06:02 -0800
commit039228f8d83036cdc9cf4a52f24af5600eaec711 (patch)
treec0905d935c023f7b32c5bd6eadba5d65d411b691
parent1e1a748b88ef7c07d5a64d8ea7bc185b6bbf211d (diff)
parent9e617dbb882b2f0d368f5103c0776b35cbc04688 (diff)
downloadfbtracert-039228f8d83036cdc9cf4a52f24af5600eaec711.zip
fbtracert-039228f8d83036cdc9cf4a52f24af5600eaec711.tar.gz
fbtracert-039228f8d83036cdc9cf4a52f24af5600eaec711.tar.bz2
Merge pull request #12 from vcabbage/suppress-logtostdout-message
Suppress logtostdout message when logtostdout is true
-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)