Archived
Reduce default verbosity now that the GUI is there
This commit is contained in:
1 parent
a1d575894a
commit
89c2f61b30
2 files changed
+29
-27
No files matched your search
+1
-1
@@ -3,4 +3,4 @@ package auto
|
||||
|
||||
import "github.com/cratonica/embed"
|
||||
|
||||
var Resources embed.PackedResourceMap = embed.PackedResourceMap{0x1f, 0x8b, 0x8, 0x0, 0x0, 0x9, 0x6e, 0x88, 0x2, 0xff, 0xbc, 0xfd, 0xd9, 0x7f, 0xdb, 0xb8, 0xb2, 0x2f, 0x8e, 0xee, 0xfb, 0xaa, 0x87, 0xfb, 0x7a, 0x5f, 0x6d, 0x6e, 0x1f, 0x35, 0x19, 0xc1, 0xb2, 0x9d, 0xee, 0xbd, 0x6, 0xd2, 0x8c, 0x8e, 0xe3, 0x38, 0x53, 0xc7, 0x4e, 0x3a, 0x76, 0xd2, 0x83, 0xac, 0xee, 0x1f, 0x38, 0x68, 0x68, 0x8d, 0xd1, 0xe0, 0xc4, 0xb1, 0xf5, 0x7e, 0xff, 0xec, 0x5f, 0x7d, 0xb, 0x3, 0x41, 0x89, 0x4e, 0xaf, 0xb5, 0xcf, 0xfe, 0x9c, 0x1e, 0x2c, 0x12, 0x4, 0x1, 0x10, 0x28, 0x14, 0x6a, 0xae, 0xff, 0xef, 0x7f, 0xfc, 0xc7, 0x7f, 0xc8, 0x49, 0x6f, 0x35, 0x92, 0xf3, 0xe6, 0x78, 0x30, 0x69, 0xfe, 0xb9, 0xf8, 0xff, 0xfd, 0xff, 0xff, 0x3f, 0xff, 0x71, 0xf0, 0xa8, 0xb6, 0x73, 0xa2, 0x4a, 0x5f, 0x5f, 0xee, 0xdc, 0x1c, 0x35, 0x1f, 0x37, 0xff, 0x5e, 0xdb, 0xf1, 0xd3, 0x60, 0xe7, 0xf1, 0xe1, 0xd1, 0xe1, 0x3e, 0xfd, 0xf9, 0x61, 0xe7, 0xc5, 0x74, 0xda, 0x1b, 0xe5, 0x62, 0xe7, 0xd5, 0x24, 0x6d, 0xee, 0xf4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0x9f, 0x96, 0x6f, 0x7c, 0x5a, 0x3b, 0xef, 0xd0, 0x38, 0xe9, 0xaf, 0x6d, 0x3d, 0x2b, 0x9a, 0x7d, 0x97, 0x54, 0xe1, 0x6, 0xee, 0x26, 0xa1, 0xd7, 0x4b, 0xa0, 0xf9, 0xab, 0xf4, 0x8b, 0xce, 0x93, 0x78, 0x28, 0x75, 0x8f, 0x42, 0x46, 0x49, 0x44, 0xf5, 0xf7, 0xf7, 0x23, 0x49, 0xa5, 0xed, 0xa4, 0xd3, 0x4c, 0xfb, 0x72, 0x7e, 0x4a, 0xb0, 0x78, 0xb2, 0xf4, 0xf, 0x3, 0x0, 0xce, 0x7f, 0xfd, 0x9d, 0xa0, 0x4f, 0x3, 0xf1, 0xe, 0xd7, 0x89, 0xbd, 0x13, 0x4f, 0x50, 0x1b, 0x7f, 0x4e, 0x7, 0x13, 0x9f, 0x76, 0x22, 0x6a, 0xfd, 0xf3, 0x10, 0xb5, 0xf4, 0xe3, 0x43, 0x4f, 0x2d, 0x48, 0xe9, 0x25, 0xb5, 0xa3, 0x9b, 0xdd, 0xf9, 0x74, 0x7c, 0xaa, 0xfb, 0xf0, 0x65, 0xe3, 0x28, 0x70, 0x5b, 0x5a, 0xd3, 0xf5, 0x6a, 0xb2, 0xe8, 0xf, 0xba, 0x84, 0x30, 0xe, 0x3d, 0xfb, 0xdLine truncated
|
||||
var Resources embed.PackedResourceMap = embed.PackedResourceMap{0x1f, 0x8b, 0x8, 0x0, 0x0, 0x9, 0x6e, 0x88, 0x2, 0xff, 0xec, 0xfd, 0x5b, 0x8c, 0x23, 0x59, 0xb7, 0x20, 0x4, 0xe7, 0x5c, 0xfe, 0x7f, 0xc0, 0x33, 0xdf, 0x9c, 0xa3, 0x19, 0x60, 0xe0, 0x85, 0x71, 0xc6, 0x97, 0xc7, 0x1d, 0x51, 0xde, 0xe9, 0x74, 0x56, 0xf7, 0x77, 0x8b, 0xc8, 0x28, 0x9f, 0xac, 0xac, 0xac, 0x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xb0, 0x7, 0x73, 0x3c, 0xc9, 0x26, 0x90, 0x18, 0xa7, 0xce, 0x3, 0xd1, 0x28, 0x6b, 0x7a, 0x96, 0x55, 0x98, 0xb5, 0xd9, 0x7c, 0xb5, 0x3a, 0xd8, 0xc3, 0xef, 0x1e, 0xfc, 0xa9, 0xb4, 0xf0, 0x47, 0x54, 0xb5, 0xb1, 0x37, 0xbd, 0xd1, 0xcd, 0xb4, 0x3f, 0x88, 0x27, 0x59, 0x55, 0xdf, 0xed, 0x8a, 0x1e, 0x3d, 0x83, 0x5b, 0x6b, 0x9c, 0x9d, 0x7, 0xLine truncated
|
||||
@@ -33,10 +33,10 @@ var (
|
||||
|
||||
var (
|
||||
showVersion bool
|
||||
showConfig bool
|
||||
confDir string
|
||||
trace string
|
||||
profiler string
|
||||
verbose bool
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -44,10 +44,10 @@ func main() {
|
||||
logger = log.New(os.Stderr, "", log.Flags())
|
||||
|
||||
flag.StringVar(&confDir, "home", "~/.syncthing", "Set configuration directory")
|
||||
flag.BoolVar(&showConfig, "config", false, "Print current configuration")
|
||||
flag.StringVar(&trace, "debug.trace", "", "(connect,net,idx,file,pull)")
|
||||
flag.StringVar(&profiler, "debug.profiler", "", "(addr)")
|
||||
flag.BoolVar(&showVersion, "version", false, "Show version")
|
||||
flag.BoolVar(&verbose, "v", false, "Be more verbose")
|
||||
flag.Usage = usageFor(flag.CommandLine, "syncthing [options]")
|
||||
flag.Parse()
|
||||
|
||||
@@ -84,6 +84,9 @@ func main() {
|
||||
log.SetPrefix("[" + myID[0:5] + "] ")
|
||||
logger.SetPrefix("[" + myID[0:5] + "] ")
|
||||
|
||||
infoln("Version", Version)
|
||||
infoln("My ID:", myID)
|
||||
|
||||
// Prepare to be able to save configuration
|
||||
|
||||
cfgFile := path.Join(confDir, "config.xml")
|
||||
@@ -144,18 +147,7 @@ func main() {
|
||||
infof("Edit %s to taste or use the GUI\n", cfgFile)
|
||||
}
|
||||
|
||||
if showConfig {
|
||||
writeConfigXML(os.Stdout, cfg)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
infoln("Version", Version)
|
||||
infoln("My ID:", myID)
|
||||
|
||||
var dir = expandTilde(cfg.Repositories[0].Directory)
|
||||
if len(dir) == 0 {
|
||||
fatalln("No repository directory. Set dir under [repository] in syncthing.ini.")
|
||||
}
|
||||
|
||||
if len(profiler) > 0 {
|
||||
go func() {
|
||||
@@ -206,29 +198,37 @@ func main() {
|
||||
// Walk the repository and update the local model before establishing any
|
||||
// connections to other nodes.
|
||||
|
||||
infoln("Populating repository index")
|
||||
if verbose {
|
||||
infoln("Populating repository index")
|
||||
}
|
||||
loadIndex(m)
|
||||
updateLocalModel(m)
|
||||
|
||||
// Routine to listen for incoming connections
|
||||
infoln("Listening for incoming connections")
|
||||
if verbose {
|
||||
infoln("Listening for incoming connections")
|
||||
}
|
||||
go listen(myID, cfg.Options.ListenAddress, m, tlsCfg)
|
||||
|
||||
// Routine to connect out to configured nodes
|
||||
infoln("Attempting to connect to other nodes")
|
||||
if verbose {
|
||||
infoln("Attempting to connect to other nodes")
|
||||
}
|
||||
go connect(myID, cfg.Options.ListenAddress, m, tlsCfg)
|
||||
|
||||
// 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 cfg.Options.AllowDelete {
|
||||
infoln("Deletes from peer nodes are allowed")
|
||||
} else {
|
||||
infoln("Deletes from peer nodes will be ignored")
|
||||
if verbose {
|
||||
if cfg.Options.AllowDelete {
|
||||
infoln("Deletes from peer nodes are allowed")
|
||||
} else {
|
||||
infoln("Deletes from peer nodes will be ignored")
|
||||
}
|
||||
okln("Ready to synchronize (read-write)")
|
||||
}
|
||||
okln("Ready to synchronize (read-write)")
|
||||
m.StartRW(cfg.Options.AllowDelete, cfg.Options.ParallelRequests)
|
||||
} else {
|
||||
} else if verbose {
|
||||
okln("Ready to synchronize (read only; no external updates accepted)")
|
||||
}
|
||||
|
||||
@@ -244,8 +244,10 @@ func main() {
|
||||
}
|
||||
}()
|
||||
|
||||
// Periodically print statistics
|
||||
go printStatsLoop(m)
|
||||
if verbose {
|
||||
// Periodically print statistics
|
||||
go printStatsLoop(m)
|
||||
}
|
||||
|
||||
select {}
|
||||
}
|
||||
@@ -374,13 +376,13 @@ func connect(myID string, addr string, m *model.Model, tlsCfg *tls.Config) {
|
||||
|
||||
if !cfg.Options.LocalAnnEnabled {
|
||||
port = -1
|
||||
} else {
|
||||
} else if verbose {
|
||||
infoln("Sending local discovery announcements")
|
||||
}
|
||||
|
||||
if !cfg.Options.GlobalAnnEnabled {
|
||||
cfg.Options.GlobalAnnServer = ""
|
||||
} else {
|
||||
} else if verbose {
|
||||
infoln("Sending external discovery announcements")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user