上传默认日志配置
This commit is contained in:
parent
439a21cca4
commit
f7624aeabb
@ -28,6 +28,7 @@ func (this *Options) GetLog() log.ILogger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *Options) LoadConfig(settings map[string]interface{}) (err error) {
|
func (this *Options) LoadConfig(settings map[string]interface{}) (err error) {
|
||||||
|
this.Debug = true
|
||||||
if settings != nil {
|
if settings != nil {
|
||||||
err = mapstructure.Decode(settings, this)
|
err = mapstructure.Decode(settings, this)
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,7 @@ type CompOptions struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *CompOptions) LoadConfig(settings map[string]interface{}) (err error) {
|
func (this *CompOptions) LoadConfig(settings map[string]interface{}) (err error) {
|
||||||
|
this.Debug = true
|
||||||
if settings != nil {
|
if settings != nil {
|
||||||
err = mapstructure.Decode(settings, this)
|
err = mapstructure.Decode(settings, this)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user