Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
samanhappy committed Aug 12, 2024
1 parent d9ff60f commit dd73c96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion monkey/monkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func PatchInstanceMethod(target reflect.Type, methodName string, replacement int
defer mu.Unlock()

if existingPatches, ok := patchesMap[key]; ok {
log.Infof("reset existing patches for %v", key)
log.Infof("reset existing patches %v for %v", existingPatches, key)
existingPatches.Reset()
delete(patchesMap, key)
}
Expand All @@ -87,6 +87,7 @@ func PatchInstanceMethod(target reflect.Type, methodName string, replacement int
}

patchesMap[key] = patches
log.Infof("patchesMap: %v", patchesMap)
return patches
}

Expand Down

0 comments on commit dd73c96

Please sign in to comment.