From 7a6f51e885fe2a630226d27ff2adfae29cf10e7c Mon Sep 17 00:00:00 2001 From: kpacha Date: Tue, 8 Nov 2022 18:50:48 +0100 Subject: [PATCH] debug cfg param renamed Signed-off-by: kpacha --- config/config.go | 4 ++-- config/parser.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/config.go b/config/config.go index d3bca2bb8..79251ab55 100644 --- a/config/config.go +++ b/config/config.go @@ -1,7 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 /* - Package config defines the config structs and some config parser interfaces and implementations +Package config defines the config structs and some config parser interfaces and implementations */ package config @@ -158,7 +158,7 @@ type ServiceConfig struct { TLS *TLS `mapstructure:"tls"` // run lura in debug mode - Debug bool + Debug bool `mapstructure:"debug_endpoint"` uriParser URIParser // SequentialStart flags if the agents should be started sequentially diff --git a/config/parser.go b/config/parser.go index f9dba26fb..7237c2846 100644 --- a/config/parser.go +++ b/config/parser.go @@ -157,9 +157,9 @@ type parseableServiceConfig struct { DialerTimeout string `json:"dialer_timeout"` DialerFallbackDelay string `json:"dialer_fallback_delay"` DialerKeepAlive string `json:"dialer_keep_alive"` - Debug bool - Plugin *Plugin `json:"plugin,omitempty"` - TLS *parseableTLS `json:"tls,omitempty"` + Debug bool `json:"debug_endpoint"` + Plugin *Plugin `json:"plugin,omitempty"` + TLS *parseableTLS `json:"tls,omitempty"` } func (p *parseableServiceConfig) normalize() ServiceConfig {