From bb967461d080fd9d437b66c04ea65ece72976687 Mon Sep 17 00:00:00 2001 From: Pavel Sviderski Date: Fri, 29 Nov 2024 12:08:05 +1000 Subject: [PATCH] add logging for starting/restarting corrosion service --- internal/machine/network.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/machine/network.go b/internal/machine/network.go index 1517e20b..f41c1c16 100644 --- a/internal/machine/network.go +++ b/internal/machine/network.go @@ -71,10 +71,12 @@ func (nc *networkController) Run(ctx context.Context) error { if nc.corroService.Running() { // Corrosion service was running before the WireGuard network was configured so we need to restart it. + slog.Info("Restarting corrosion service to apply new configuration with WireGuard network.") if err := nc.corroService.Restart(ctx); err != nil { return fmt.Errorf("restart corrosion service: %w", err) } } else { + slog.Info("Starting corrosion service.") if err := nc.corroService.Start(ctx); err != nil { return fmt.Errorf("start corrosion service: %w", err) }