From b4a1bbe772ea13c1eb90dc71807d5ca55a73cab2 Mon Sep 17 00:00:00 2001 From: Javier Marcos <1271349+javuto@users.noreply.github.com> Date: Sun, 10 Nov 2024 16:10:22 +0100 Subject: [PATCH] Change the default logger in osctrl-tls and better service startup messages --- tls/main.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tls/main.go b/tls/main.go index 5c6d2ac4..059f38cf 100644 --- a/tls/main.go +++ b/tls/main.go @@ -53,9 +53,9 @@ const ( // Default redis configuration file defRedisConfigurationFile string = "config/redis.json" // Default Logger configuration file - defLoggerConfigurationFile string = "config/logger.json" + defLoggerConfigurationFile string = "config/logger_tls.json" // Default carver configuration file - defCarverConfigurationFile string = "config/carver.json" + defCarverConfigurationFile string = "config/carver_tls.json" // Default TLS certificate file defTLSCertificateFile string = "config/tls.crt" // Default TLS private key file @@ -715,8 +715,8 @@ func osctrlService() { } }() } - // Initialize TLS handlers before router + log.Info().Msg("Initializing handlers") handlersTLS = handlers.CreateHandlersTLS( handlers.WithEnvs(envs), handlers.WithEnvsMap(&envsmap), @@ -731,9 +731,7 @@ func osctrlService() { ) // ///////////////////////// ALL CONTENT IS UNAUTHENTICATED FOR TLS - if settingsmgr.DebugService(settings.ServiceTLS) { - log.Info().Msg("DebugService: Creating router") - } + log.Info().Msg("Initializing router") // Create router for TLS endpoint muxTLS := http.NewServeMux() // TLS: root