Skip to content

Commit 63d5251

Browse files
committed
chore: update log message
1 parent bd585fe commit 63d5251

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/cache/context.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func GetContextData(ctx context.Context, tp, key any) any {
131131
if c.Expired() {
132132
// The warning means that the cache context is misused for long-life task,
133133
// it can be resolved with WithNoCacheContext(ctx).
134-
log.Warn("cache context is expired, may be misused for long-life tasks: %v", c)
134+
log.Warn("cache context is expired, is highly likely to be misused for long-life tasks: %v", c)
135135
return nil
136136
}
137137
return c.Get(tp, key)
@@ -144,7 +144,7 @@ func SetContextData(ctx context.Context, tp, key, value any) {
144144
if c.Expired() {
145145
// The warning means that the cache context is misused for long-life task,
146146
// it can be resolved with WithNoCacheContext(ctx).
147-
log.Warn("cache context is expired, may be misused for long-life tasks: %v", c)
147+
log.Warn("cache context is expired, is highly likely to be misused for long-life tasks: %v", c)
148148
return
149149
}
150150
c.Put(tp, key, value)
@@ -157,7 +157,7 @@ func RemoveContextData(ctx context.Context, tp, key any) {
157157
if c.Expired() {
158158
// The warning means that the cache context is misused for long-life task,
159159
// it can be resolved with WithNoCacheContext(ctx).
160-
log.Warn("cache context is expired, may be misused for long-life tasks: %v", c)
160+
log.Warn("cache context is expired, is highly likely to be misused for long-life tasks: %v", c)
161161
return
162162
}
163163
c.Delete(tp, key)

0 commit comments

Comments
 (0)