From 600de200370bf95cd17d2af07418d02bf64ffb27 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Wed, 15 Apr 2015 16:37:39 -0700 Subject: [PATCH] Correctly log application version Signed-off-by: Stephen J Day --- cmd/registry/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/registry/main.go b/cmd/registry/main.go index 29d393c70..e9ec9c503 100644 --- a/cmd/registry/main.go +++ b/cmd/registry/main.go @@ -47,6 +47,7 @@ func main() { } ctx := context.Background() + ctx = context.WithValue(ctx, "version", version.Version) config, err := resolveConfiguration() if err != nil { @@ -226,7 +227,7 @@ func configureLogging(ctx context.Context, config *configuration.Configuration) } // log the application version with messages - ctx = context.WithValue(ctx, "version", version.Version) + ctx = context.WithLogger(ctx, context.GetLogger(ctx, "version")) if len(config.Log.Fields) > 0 { // build up the static fields, if present.