lib: Consistently set suture logging (#7202)
This commit is contained in:
@@ -52,7 +52,7 @@ type folderSummaryService struct {
|
||||
|
||||
func NewFolderSummaryService(cfg config.Wrapper, m Model, id protocol.DeviceID, evLogger events.Logger) FolderSummaryService {
|
||||
service := &folderSummaryService{
|
||||
Supervisor: suture.New("folderSummaryService", util.Spec()),
|
||||
Supervisor: suture.New("folderSummaryService", util.SpecWithDebugLogger(l)),
|
||||
cfg: cfg,
|
||||
model: m,
|
||||
id: id,
|
||||
|
||||
+1
-4
@@ -198,10 +198,7 @@ var (
|
||||
// where it sends index information to connected peers and responds to requests
|
||||
// for file data without altering the local folder in any way.
|
||||
func NewModel(cfg config.Wrapper, id protocol.DeviceID, clientName, clientVersion string, ldb *db.Lowlevel, protectedFiles []string, evLogger events.Logger) Model {
|
||||
spec := util.Spec()
|
||||
spec.EventHook = func(e suture.Event) {
|
||||
l.Debugln(e)
|
||||
}
|
||||
spec := util.SpecWithDebugLogger(l)
|
||||
m := &model{
|
||||
Supervisor: suture.New("model", spec),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user