From 10fd0f5a32e1eec489b064de11c12bb157453ddc Mon Sep 17 00:00:00 2001 From: Alex Ababii Date: Mon, 21 Sep 2026 17:19:47 +0200 Subject: [PATCH] upd log level for server failed initialization in userlog service --- services/userlog/pkg/command/server.go | 6 +++--- services/userlog/pkg/config/config.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/services/userlog/pkg/command/server.go b/services/userlog/pkg/command/server.go index 08e52335bf..0e8992dea5 100644 --- a/services/userlog/pkg/command/server.go +++ b/services/userlog/pkg/command/server.go @@ -142,7 +142,7 @@ func Server(cfg *config.Config) *cobra.Command { httpSvc.TraceProvider(tracerProvider), ) if err != nil { - logger.Info().Err(err).Str("transport", "http").Msg("Failed to initialize server") + logger.Error().Err(err).Str("transport", "http").Msg("Failed to initialize server") return err } @@ -157,7 +157,7 @@ func Server(cfg *config.Config) *cobra.Command { ) if err != nil { - logger.Info().Err(err).Str("transport", "http").Msg("Failed to initialize server") + logger.Error().Err(err).Str("transport", "http").Msg("Failed to initialize server") return err } @@ -206,7 +206,7 @@ func Server(cfg *config.Config) *cobra.Command { debug.Config(cfg), ) if err != nil { - logger.Info().Err(err).Str("transport", "debug").Msg("Failed to initialize server") + logger.Error().Err(err).Str("transport", "debug").Msg("Failed to initialize server") return err } diff --git a/services/userlog/pkg/config/config.go b/services/userlog/pkg/config/config.go index 22c516f27e..6f16fdcdac 100644 --- a/services/userlog/pkg/config/config.go +++ b/services/userlog/pkg/config/config.go @@ -53,7 +53,7 @@ type Persistence struct { // Events combines the configuration options for the event bus. type Events struct { - Disabled bool `yaml:"disabled" env:"USERLOG_EVENTS_DISABLED" desc:"Disables listening for events. Set this to true if the service should only handle HTTP requests." introductionVersion:"%NEXT%"` + Disabled bool `yaml:"disabled" env:"USERLOG_EVENTS_DISABLED" desc:"Disables listening for events. Set this to true if the service should only handle HTTP requests." introductionVersion:"%%NEXT%%"` Endpoint string `yaml:"endpoint" env:"OC_EVENTS_ENDPOINT;USERLOG_EVENTS_ENDPOINT" desc:"The address of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture." introductionVersion:"1.0.0"` Cluster string `yaml:"cluster" env:"OC_EVENTS_CLUSTER;USERLOG_EVENTS_CLUSTER" desc:"The clusterID of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture. Mandatory when using NATS as event system." introductionVersion:"1.0.0"` TLSInsecure bool `yaml:"tls_insecure" env:"OC_INSECURE;OC_EVENTS_TLS_INSECURE;USERLOG_EVENTS_TLS_INSECURE" desc:"Whether to verify the server TLS certificates." introductionVersion:"1.0.0"` @@ -73,7 +73,7 @@ type CORS struct { // HTTP defines the available http configuration. type HTTP struct { - Disabled bool `yaml:"disabled" env:"USERLOG_HTTP_DISABLED" desc:"Disables the HTTP service. Set this to true if the service should only handle events." introductionVersion:"%NEXT%"` + Disabled bool `yaml:"disabled" env:"USERLOG_HTTP_DISABLED" desc:"Disables the HTTP service. Set this to true if the service should only handle events." introductionVersion:"%%NEXT%%"` Addr string `yaml:"addr" env:"USERLOG_HTTP_ADDR" desc:"The bind address of the HTTP service." introductionVersion:"1.0.0"` Namespace string `yaml:"-"` Root string `yaml:"root" env:"USERLOG_HTTP_ROOT" desc:"Subdirectory that serves as the root for this HTTP service." introductionVersion:"1.0.0"`