Update xray.go

pull/4926/head
xqzr 2025-07-23 19:38:03 +08:00 committed by GitHub
parent fa362f0514
commit b67caa3840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -522,11 +522,9 @@ func (c *Config) Build() (*core.Config, error) {
config.App = append(config.App, serial.ToTypedMessage(statsConf))
}
var logConfMsg *serial.TypedMessage
var logConfMsg *serial.TypedMessage = serial.ToTypedMessage(DefaultLogConfig())
if c.LogConfig != nil {
logConfMsg = serial.ToTypedMessage(c.LogConfig.Build())
} else {
logConfMsg = serial.ToTypedMessage(DefaultLogConfig())
}
// let logger module be the first App to start,
// so that other modules could print log during initiating