From 49563af4120a926e11c70dafe8a6cca814054cd8 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 13 Oct 2025 07:34:49 +0200 Subject: [PATCH] cmd/dnsupdater/main.go: log and continue if service is not found --- cmd/dnsupdater/main.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/dnsupdater/main.go b/cmd/dnsupdater/main.go index e84b4bd..fcec2bd 100644 --- a/cmd/dnsupdater/main.go +++ b/cmd/dnsupdater/main.go @@ -33,11 +33,16 @@ func main() { for service_name, domains := range config.Updates { - log.Info().Str("service", service_name).Msg("Begin update for service") - // Get service service := app.ProviderManager.Get(service_name) + if service == nil { + log.Warn().Str("service", service_name).Msg("Invalid service") + continue + } + + log.Info().Str("service", service_name).Msg("Begin update for service") + for domain, records := range domains { for name, data := range records {