上传默认日志配置

This commit is contained in:
liwei1dao 2022-09-21 14:51:02 +08:00
parent 439a21cca4
commit f7624aeabb
2 changed files with 2 additions and 0 deletions

View File

@ -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)
}

View File

@ -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)
}