new config framework in webdav
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user