File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ func (ncs *NatsCacheService) updateRecorderCache(entry jetstream.KeyValueEntry)
2323 if entry .Operation () == jetstream .KeyValuePurge {
2424 // Only log and delete if the entry actually still exists in our cache.
2525 if _ , exists := ncs .recordersStore [recorderId ]; exists {
26- ncs .logger .Infof ("recorder %s went offline, removing from local cache. " , recorderId )
26+ ncs .logger .Infof ("recorder %s went offline, removing from local cache" , recorderId )
2727 delete (ncs .recordersStore , recorderId )
2828 }
2929 return
@@ -32,6 +32,7 @@ func (ncs *NatsCacheService) updateRecorderCache(entry jetstream.KeyValueEntry)
3232 // Get or create the recorder info in the cache
3333 recorder , exists := ncs .recordersStore [recorderId ]
3434 if ! exists {
35+ ncs .logger .Infof ("adding recorder %s to local cache" , recorderId )
3536 recorder = & utils.RecorderInfo {RecorderId : recorderId }
3637 ncs .recordersStore [recorderId ] = recorder
3738 }
You can’t perform that action at this time.
0 commit comments