Revert "Let suture logging bubble upwards"

This reverts commit 1b837116e6.
This commit is contained in:
Jakob Borg
2015-07-11 11:12:20 +10:00
parent 1b837116e6
commit a04b005e93
7 changed files with 31 additions and 50 deletions

View File

@@ -107,7 +107,13 @@ var (
// for file data without altering the local folder in any way.
func NewModel(cfg *config.Wrapper, id protocol.DeviceID, deviceName, clientName, clientVersion string, ldb *leveldb.DB) *Model {
m := &Model{
Supervisor: suture.NewSimple("model"),
Supervisor: suture.New("model", suture.Spec{
Log: func(line string) {
if debug {
l.Debugln(line)
}
},
}),
cfg: cfg,
db: ldb,
finder: db.NewBlockFinder(ldb, cfg),