diff --git a/ocis/pkg/command/shares.go b/ocis/pkg/command/shares.go index a6b1795b8..20d466501 100644 --- a/ocis/pkg/command/shares.go +++ b/ocis/pkg/command/shares.go @@ -3,6 +3,7 @@ package command import ( "errors" + "github.com/rs/zerolog" "github.com/urfave/cli/v2" "github.com/cs3org/reva/v2/pkg/rgrpc/todo/pool" @@ -116,6 +117,11 @@ func cleanup(c *cli.Context, cfg *config.Config) error { return configlog.ReturnError(err) } + l := logger() + + zerolog.SetGlobalLevel(zerolog.InfoLevel) + serviceUserCtx = l.WithContext(serviceUserCtx) + mgr.(*jsoncs3.Manager).CleanupStaleShares(serviceUserCtx) return nil