Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 16865c8

Browse files
committed
Add more info to logs
Signed-off-by: Keith Mattix II <[email protected]>
1 parent 75fb48b commit 16865c8

File tree

1 file changed

+2
-2
lines changed
  • pkg/certificate/providers

1 file changed

+2
-2
lines changed

pkg/certificate/providers/mrc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ func (m *MRCComposer) Watch(ctx context.Context) (<-chan certificate.MRCEvent, e
4646
eventChan := make(chan certificate.MRCEvent)
4747
m.informerCollection.AddEventHandler(informers.InformerKeyMeshRootCertificate, cache.ResourceEventHandlerFuncs{
4848
AddFunc: func(obj interface{}) {
49-
log.Debug().Msg("received MRC add event")
5049
mrc := obj.(*v1alpha2.MeshRootCertificate)
50+
log.Debug().Msgf("received MRC add event for MRC %s/%s", mrc.GetNamespace(), mrc.GetName())
5151
eventChan <- certificate.MRCEvent{
5252
Type: certificate.MRCEventAdded,
5353
MRC: mrc,
@@ -56,8 +56,8 @@ func (m *MRCComposer) Watch(ctx context.Context) (<-chan certificate.MRCEvent, e
5656
// We don't really care about the previous version
5757
// since the "state machine" of the MRC is well defined
5858
UpdateFunc: func(_, newObj interface{}) {
59-
log.Debug().Msg("received MRC update event")
6059
mrc := newObj.(*v1alpha2.MeshRootCertificate)
60+
log.Debug().Msgf("received MRC update event for MRC %s/%s", mrc.GetNamespace(), mrc.GetName())
6161
eventChan <- certificate.MRCEvent{
6262
Type: certificate.MRCEventUpdated,
6363
MRC: mrc,

0 commit comments

Comments
 (0)