diff --git a/modules/options.go b/modules/options.go index ec92a06d6..bd27360bb 100644 --- a/modules/options.go +++ b/modules/options.go @@ -28,6 +28,7 @@ func (this *Options) GetLog() log.ILogger { } func (this *Options) LoadConfig(settings map[string]interface{}) (err error) { + this.Debug = true if settings != nil { err = mapstructure.Decode(settings, this) } diff --git a/services/comp_gateroute.go b/services/comp_gateroute.go index 9ce678b9c..5e1a135c0 100644 --- a/services/comp_gateroute.go +++ b/services/comp_gateroute.go @@ -34,6 +34,7 @@ type CompOptions struct { } func (this *CompOptions) LoadConfig(settings map[string]interface{}) (err error) { + this.Debug = true if settings != nil { err = mapstructure.Decode(settings, this) }