From a2dfd37bb5deb24598810844b92c9dc19eb7d7cb Mon Sep 17 00:00:00 2001
From: Pea Nut <peanut2@systemli.org>
Date: Fri, 19 Jul 2024 10:54:57 +0200
Subject: [PATCH] Fix log message that logs whitelisted gateway ip in firewall

Having a space in Str() is supoptimal:
> DBG Allowd gateway IP gateway ip: =51.158.144.32
---
 pkg/launcher/launcher_linux.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pkg/launcher/launcher_linux.go b/pkg/launcher/launcher_linux.go
index 7bf63346..04e92b46 100644
--- a/pkg/launcher/launcher_linux.go
+++ b/pkg/launcher/launcher_linux.go
@@ -203,7 +203,9 @@ func (l *Launcher) FirewallStart(gateways []bonafide.Gateway) error {
 	}
 
 	for _, gw := range gateways {
-		log.Debug().Str("gateway ip: ", gw.IPAddress).Msg("Allowd gateway IP")
+		log.Debug().
+			Str("gatewayIP", gw.IPAddress).
+			Msg("Whitelisting gateway ip in firewall")
 	}
 
 	if os.Getenv("LEAP_DRYRUN") == "1" {
-- 
GitLab