From 03ed290cc9caf5e451ae9f3b955e9eb73fb3f74e Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Fri, 3 Apr 2015 14:09:33 -0700 Subject: [PATCH] Correctly reference context object Signed-off-by: Stephen J Day --- context/logger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/context/logger.go b/context/logger.go index e540018c..78e4212a 100644 --- a/context/logger.go +++ b/context/logger.go @@ -47,14 +47,14 @@ func WithLogger(ctx Context, logger Logger) Context { // GetLoggerWithField returns a logger instance with the specified field key // and value without affecting the context. Extra specified keys will be // resolved from the context. -func GetLoggerWithField(ctx context.Context, key, value interface{}, keys ...interface{}) Logger { +func GetLoggerWithField(ctx Context, key, value interface{}, keys ...interface{}) Logger { return getLogrusLogger(ctx, keys...).WithField(fmt.Sprint(key), value) } // GetLoggerWithFields returns a logger instance with the specified fields // without affecting the context. Extra specified keys will be resolved from // the context. -func GetLoggerWithFields(ctx context.Context, fields map[string]interface{}, keys ...interface{}) Logger { +func GetLoggerWithFields(ctx Context, fields map[string]interface{}, keys ...interface{}) Logger { return getLogrusLogger(ctx, keys...).WithFields(logrus.Fields(fields)) }