Update cs3org/reva, use configured logger on runtime (#153)

* inject logger on reva

* update ocis-pkg
This commit is contained in:
Alex Unger
2020-04-28 08:15:12 +02:00
committed by GitHub
parent f74320d85d
commit e21222e4e6
15 changed files with 84 additions and 15 deletions
+5 -1
View File
@@ -117,7 +117,11 @@ func AuthBasic(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -102,7 +102,11 @@ func AuthBearer(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -203,7 +203,11 @@ func Frontend(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -162,7 +162,11 @@ func Gateway(cfg *config.Config) *cli.Command {
return err
}
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -103,7 +103,11 @@ func Sharing(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -139,7 +139,11 @@ func StorageEOS(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -136,7 +136,11 @@ func StorageEOSData(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -139,7 +139,11 @@ func StorageHome(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -136,7 +136,11 @@ func StorageHomeData(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -139,7 +139,11 @@ func StorageOC(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -136,7 +136,11 @@ func StorageOCData(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -136,7 +136,11 @@ func StorageRoot(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().
+5 -1
View File
@@ -116,7 +116,11 @@ func Users(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
runtime.Run(rcfg, pidFile)
runtime.RunWithOptions(
rcfg,
pidFile,
runtime.WithLogger(&logger.Logger),
)
return nil
}, func(_ error) {
logger.Info().