From 1a371afcd6d4b4540e2705658a46f20140044f16 Mon Sep 17 00:00:00 2001 From: jddaggett1 Date: Mon, 24 Jul 2023 17:38:00 +0000 Subject: [PATCH] migrated to structured logging --- pkg/cloud/services/networking/router.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/cloud/services/networking/router.go b/pkg/cloud/services/networking/router.go index c6ae679837..fa23e703ef 100644 --- a/pkg/cloud/services/networking/router.go +++ b/pkg/cloud/services/networking/router.go @@ -40,7 +40,7 @@ func (s *Service) ReconcileRouter(openStackCluster *infrav1.OpenStackCluster, cl return nil } if openStackCluster.Status.ExternalNetwork == nil || openStackCluster.Status.ExternalNetwork.ID == "" { - s.scope.Logger().V(3).Info("No need to create router, due to missing ExternalNetworkID") + s.scope.Logger().V(3).Info("No need to reconcile router since no external network exists") return nil } @@ -70,7 +70,7 @@ func (s *Service) ReconcileRouter(openStackCluster *infrav1.OpenStackCluster, cl } router = *createdRouter } else { - s.scope.Logger().V(6).Info("Reuse existing Router", "name", router.Name, "id", router.ID) + s.scope.Logger().V(6).Info("Reusing existing router", "name", router.Name, "id", router.ID) } routerIPs := []string{} @@ -222,9 +222,9 @@ func (s *Service) DeleteRouter(openStackCluster *infrav1.OpenStackCluster, clust if !capoerrors.IsNotFound(err) { return fmt.Errorf("unable to remove router interface: %v", err) } - s.scope.Logger().V(4).Info("Router Interface already removed, nothing to do", "id", router.ID) + s.scope.Logger().V(4).Info("RouterInterface already removed, nothing to do", "id", router.ID) } else { - s.scope.Logger().V(4).Info("Removed RouterInterface of Router", "id", router.ID) + s.scope.Logger().V(4).Info("Removed RouterInterface of router", "id", router.ID) } }