new config framework in webdav

This commit is contained in:
A.Unger
2021-11-08 14:09:58 +01:00
parent c05c3db392
commit e308992e85
3 changed files with 46 additions and 22 deletions
+5 -1
View File
@@ -4,6 +4,8 @@ import (
"context"
"os"
"github.com/owncloud/ocis/ocis-pkg/shared"
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
"github.com/owncloud/ocis/ocis-pkg/log"
"github.com/owncloud/ocis/ocis-pkg/version"
@@ -82,7 +84,9 @@ type SutureService struct {
// NewSutureService creates a new webdav.SutureService
func NewSutureService(cfg *ociscfg.Config) suture.Service {
cfg.WebDAV.Log = cfg.Log
if (cfg.WebDAV.Log == shared.Log{}) {
cfg.WebDAV.Log = cfg.Log
}
return SutureService{
cfg: cfg.WebDAV,
}