From 0230c77d2da8c59c680487a5270da1ca2992e73c Mon Sep 17 00:00:00 2001 From: hwipl <33433250+hwipl@users.noreply.github.com> Date: Fri, 19 Apr 2024 14:38:39 +0200 Subject: [PATCH] Log changes of CPD captive portal status Signed-off-by: hwipl <33433250+hwipl@users.noreply.github.com> --- internal/trafpol/trafpol.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/trafpol/trafpol.go b/internal/trafpol/trafpol.go index 7632595..e0a9a43 100644 --- a/internal/trafpol/trafpol.go +++ b/internal/trafpol/trafpol.go @@ -65,6 +65,7 @@ func (t *TrafPol) handleCPDReport(ctx context.Context, report *cpd.Report) { // remove ports from allowed ports removePortalPorts(ctx, t.config.PortalPorts) t.capPortal = false + log.WithField("capPortal", t.capPortal).Info("TrafPol changed CPD status") } return } @@ -73,6 +74,7 @@ func (t *TrafPol) handleCPDReport(ctx context.Context, report *cpd.Report) { if !t.capPortal { addPortalPorts(ctx, t.config.PortalPorts) t.capPortal = true + log.WithField("capPortal", t.capPortal).Info("TrafPol changed CPD status") } }