Skip to content

Commit

Permalink
feat: logging version information on start (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
dadrus committed Apr 13, 2023
1 parent dba0a87 commit 92b6564
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package internal

import (
"github.com/rs/zerolog"
"go.uber.org/fx"

"github.com/dadrus/heimdall/internal/cache"
Expand All @@ -30,11 +31,15 @@ import (
"github.com/dadrus/heimdall/internal/rules/mechanisms"
"github.com/dadrus/heimdall/internal/signer"
"github.com/dadrus/heimdall/internal/tracing"
"github.com/dadrus/heimdall/version"
)

var Module = fx.Options( //nolint:gochecknoglobals
config.Module,
logging.Module,
fx.Invoke(func(logger zerolog.Logger) {
logger.Info().Str("_version", version.Version).Msg("Starting heimdall")
}),
tracing.Module,
cache.Module,
signer.Module,
Expand Down

0 comments on commit 92b6564

Please sign in to comment.