From aaf0604601b3a27045164c51b7903492bc663128 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 31 Mar 2014 06:47:08 +0200 Subject: [PATCH] Remove pointless -v option --- cmd/syncthing/main.go | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index fe7e1eaae..1b79488b2 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -33,7 +33,6 @@ var ( var ( showVersion bool confDir string - verbose bool ) const ( @@ -63,7 +62,6 @@ const ( func main() { flag.StringVar(&confDir, "home", getDefaultConfDir(), "Set configuration directory") flag.BoolVar(&showVersion, "version", false, "Show version") - flag.BoolVar(&verbose, "v", false, "Be more verbose") flag.Usage = usageFor(flag.CommandLine, usage, extraUsage) flag.Parse() @@ -230,9 +228,7 @@ func main() { // Walk the repository and update the local model before establishing any // connections to other nodes. - if verbose { - infoln("Populating repository index") - } + infoln("Populating repository index") m.LoadIndexes(confDir) m.ScanRepos() m.SaveIndexes(confDir) @@ -244,23 +240,16 @@ func main() { } // Routine to connect out to configured nodes - if verbose { - infoln("Attempting to connect to other nodes") - } disc := discovery() go listenConnect(myID, disc, m, tlsCfg, connOpts) // Routine to pull blocks from other nodes to synchronize the local // repository. Does not run when we are in read only (publish only) mode. if cfg.Options.ReadOnly { - if verbose { - okln("Ready to synchronize (read only; no external updates accepted)") - } + okln("Ready to synchronize (read only; no external updates accepted)") m.StartRO() } else { - if verbose { - okln("Ready to synchronize (read-write)") - } + okln("Ready to synchronize (read-write)") m.StartRW(cfg.Options.ParallelRequests) } @@ -444,7 +433,7 @@ func discovery() *discover.Discoverer { if !cfg.Options.GlobalAnnEnabled { cfg.Options.GlobalAnnServer = "" - } else if verbose { + } else { infoln("Sending external discovery announcements") }