Fixup log hook ptr receiver
@@ -8,14 +8,13 @@ import (
var _ logrus.Hook = &Context{}
-type Context struct {
-}
+type Context struct{}
-func (c Context) Levels() []logrus.Level {
+func (c *Context) Levels() []logrus.Level {
return logrus.AllLevels
}
-func (c Context) Fire(entry *logrus.Entry) error {
+func (c *Context) Fire(entry *logrus.Entry) error {
_, exist := entry.Data["uid"]
if entry.Context != nil && !exist {
if uid := entry.Context.Value(request.UID); uid != nil {
