Skip to content

Commit

Permalink
fixed cache warn log
Browse files Browse the repository at this point in the history
  • Loading branch information
IrineSistiana committed Dec 26, 2020
1 parent d259718 commit 41c6960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dispatcher/plugin/cache/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (c *cachePlugin) connect(ctx context.Context, qCtx *handler.Context, pipeCt
cacheable = false
} else {
if r, ttl := c.c.get(key); r != nil { // if cache hit
c.logger.Warnf("%v: cache hit", qCtx)
c.logger.Debugf("%v: cache hit", qCtx)
r.Id = qCtx.Q.Id
setTTL(r, uint32(ttl/time.Second))
qCtx.R = r
Expand Down

0 comments on commit 41c6960

Please sign in to comment.