You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2021/02/16 23:49:58 UTC

[lucene-solr-operator] branch main updated: Fix logging value in metrics controller. (#219)

This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene-solr-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new f02c1e7  Fix logging value in metrics controller. (#219)
f02c1e7 is described below

commit f02c1e715e60bfeb3dd5b67854d8224248f94bdc
Author: Houston Putman <ho...@apache.org>
AuthorDate: Tue Feb 16 18:49:52 2021 -0500

    Fix logging value in metrics controller. (#219)
---
 controllers/solrprometheusexporter_controller.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/controllers/solrprometheusexporter_controller.go b/controllers/solrprometheusexporter_controller.go
index 29b1ca3..8a7df8d 100644
--- a/controllers/solrprometheusexporter_controller.go
+++ b/controllers/solrprometheusexporter_controller.go
@@ -216,7 +216,7 @@ func (r *SolrPrometheusExporterReconciler) Reconcile(req ctrl.Request) (ctrl.Res
 
 	ready := false
 	// Check if the Metrics Deployment already exists
-	deploymentLogger := logger.WithValues("service", metricsService.Name)
+	deploymentLogger := logger.WithValues("deployment", deploy.Name)
 	foundDeploy := &appsv1.Deployment{}
 	err = r.Get(context.TODO(), types.NamespacedName{Name: deploy.Name, Namespace: deploy.Namespace}, foundDeploy)
 	if err != nil && errors.IsNotFound(err) {