Skip to content

Commit 145a821

Browse files
committed
nit:
1 parent 0aa95af commit 145a821

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/services/nats/nats_cache_recorder.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)