Merge pull request #612 from owncloud/glauth-metrics-buildinfo

add build information to metrics
This commit is contained in:
David Christofas
2020-09-28 17:20:43 +02:00
committed by GitHub
6 changed files with 22 additions and 1 deletions
+2
View File
@@ -7,6 +7,7 @@ import (
"github.com/owncloud/ocis/glauth/pkg/flagset"
"github.com/owncloud/ocis/ocis/pkg/config"
"github.com/owncloud/ocis/ocis/pkg/register"
"github.com/owncloud/ocis/ocis/pkg/version"
)
// GLAuthCommand is the entrypoint for the glauth command.
@@ -31,6 +32,7 @@ func configureGLAuth(cfg *config.Config) *svcconfig.Config {
cfg.GLAuth.Log.Level = cfg.Log.Level
cfg.GLAuth.Log.Pretty = cfg.Log.Pretty
cfg.GLAuth.Log.Color = cfg.Log.Color
cfg.GLAuth.Version = version.String
if cfg.Tracing.Enabled {
cfg.GLAuth.Tracing.Enabled = cfg.Tracing.Enabled