Let suture logging bubble upwards

This commit is contained in:
Jakob Borg
2015-07-11 10:52:57 +10:00
parent d16b04b683
commit 1b837116e6
7 changed files with 50 additions and 31 deletions

View File

@@ -425,7 +425,9 @@ func upgradeViaRest() error {
func syncthingMain() {
// Create a main service manager. We'll add things to this as we go along.
// We want any logging it does to go through our log system.
// We want any logging it does to go through our log system. Other
// suture.Supervisor:s that are Add()ed to mainSvc will inherit this log
// function.
mainSvc := suture.New("main", suture.Spec{
Log: func(line string) {
if debugSuture {