mirror of
https://github.com/valitydev/hellgate.git
synced 2024-11-06 02:45:20 +00:00
HG-557: Add logging of cache hit/miss (#489)
This commit is contained in:
parent
2c2bd465bc
commit
a0ba5ff844
@ -836,10 +836,12 @@ checkout_history_by_timestamp([], Timestamp, St) ->
|
||||
checkout_cached_party_by_revision(PartyID, Revision) ->
|
||||
case pm_party_cache:get_party(PartyID, Revision) of
|
||||
{ok, Party} ->
|
||||
_ = logger:info("PartyID: ~p Revision: ~p cache hit", [PartyID, Revision]),
|
||||
{ok, Party};
|
||||
not_found ->
|
||||
case checkout_party_by_revision(PartyID, Revision) of
|
||||
{ok, Party} = Res ->
|
||||
_ = logger:info("PartyID: ~p Revision: ~p cache miss", [PartyID, Revision]),
|
||||
ok = pm_party_cache:update_party(PartyID, Revision, Party),
|
||||
Res;
|
||||
OtherRes ->
|
||||
|
Loading…
Reference in New Issue
Block a user