fix all storages

This commit is contained in:
A.Unger committed 2021-11-11 15:48:00 +01:00
1 parent 582649b7d4
commit 59f53390a8
16 files changed
+85 -210

No files matched your search

+6 -3
View File
@@ -4,6 +4,8 @@ import (
"os"
"strings"
"github.com/owncloud/ocis/ocis-pkg/shared"
"github.com/owncloud/ocis/ocis-pkg/log"
"github.com/owncloud/ocis/ocis-pkg/version"
"github.com/owncloud/ocis/storage/pkg/config"
@@ -25,10 +27,11 @@ func Execute(cfg *config.Config) error {
Email: "support@owncloud.com",
},
},
//Flags: flagset.RootWithConfig(cfg),
Before: func(c *cli.Context) error {
if cfg.Log == nil {
cfg.Log = &shared.Log{}
}
logger := NewLogger(cfg)
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
+1 -3
View File
@@ -512,7 +512,5 @@ type Config struct {
// New initializes a new configuration with or without defaults.
func New() *Config {
return &Config{
Log: &shared.Log{},
}
return &Config{}
}