Skip to content

Commit

Permalink
Remove unnecessary INFO log statements in Memoize func
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrbasu committed Jul 29, 2024
1 parent a5aa051 commit 1271054
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions plugin/hydrate_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ func (f HydrateFunc) Memoize(opts ...MemoizeOption) HydrateFunc {
if isMemoized(f) {
log.Printf("[WARN] Memoize %s - already memoized", helpers.GetFunctionName(f))
}
log.Printf("[INFO] Memoize %s", helpers.GetFunctionName(f))

config := newMemoizeConfiguration(f)
for _, o := range opts {
Expand Down Expand Up @@ -130,8 +129,6 @@ func (f HydrateFunc) Memoize(opts ...MemoizeOption) HydrateFunc {
return callAndCacheHydrate(ctx, d, h, f, cacheKey, ttl)
}

log.Printf("[INFO] Memoize %p %s", f, helpers.GetFunctionName(f))

if memoizedFuncPtr == 0 {
memoizedFuncPtr = reflect.ValueOf(memoizedFunc).Pointer()
}
Expand Down

0 comments on commit 1271054

Please sign in to comment.