feat(logging): progress on new logging #4590

This commit is contained in:
Torkel Ödegaard
2016-06-07 09:29:47 +02:00
parent 22778e6efd
commit 9741af2031
9 changed files with 49 additions and 69 deletions

View File

@ -1,7 +1,6 @@
package middleware
import (
"fmt"
"strconv"
"strings"
@ -52,9 +51,7 @@ func GetContextHandler() macaron.Handler {
}
ctx.Logger = log.New("context", "user", ctx.UserId, "orgId", ctx.OrgId)
// set ctx in data array on the original context
c.Data["ctx"] = ctx
fmt.Printf("c: %v\n", c)
ctx.Data["ctx"] = ctx
c.Map(ctx)
}