Trace item registration in the cache

This commit is contained in:
Chris Roberts 2022-02-22 15:05:23 -08:00 committed by Paul Hinze
parent 6d0e08942b
commit 74ff5da434
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -4,6 +4,8 @@ module VagrantPlugins
# Simple container for caching values
class Cacher
include HasLogger
def initialize
@registry = {}
end
@ -22,6 +24,7 @@ module VagrantPlugins
# @param value [Object] Value to register
# @return [Object] value
def register(key, value)
logger.trace("cache register #{key} = #{value}")
@registry[key] = value
end