mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-04 00:02:37 +02:00
always pass a cluster name as a logger field
This commit is contained in:
@@ -45,7 +45,10 @@ func (c *Controller) dispatchPodEvent(clusterName spec.NamespacedName, event spe
|
||||
cluster, ok := c.clusters[clusterName]
|
||||
c.clustersMu.RUnlock()
|
||||
if ok {
|
||||
c.logger.Debugf("sending %q event of pod %q to the %q cluster channel", event.EventType, event.PodName, clusterName)
|
||||
c.logger.WithField("cluster-name", clusterName).
|
||||
Debugf("sending %q event of pod %q to the cluster channel",
|
||||
event.EventType,
|
||||
event.PodName)
|
||||
cluster.ReceivePodEvent(event)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user