mirror of https://github.com/XTLS/Xray-core
re Update xray.go
parent
b8e1b1d269
commit
21548af62f
|
@ -522,9 +522,11 @@ func (c *Config) Build() (*core.Config, error) {
|
||||||
config.App = append(config.App, serial.ToTypedMessage(statsConf))
|
config.App = append(config.App, serial.ToTypedMessage(statsConf))
|
||||||
}
|
}
|
||||||
|
|
||||||
var logConfMsg *serial.TypedMessage = serial.ToTypedMessage(DefaultLogConfig())
|
var logConfMsg *serial.TypedMessage
|
||||||
if c.LogConfig != nil {
|
if c.LogConfig != nil {
|
||||||
logConfMsg = serial.ToTypedMessage(c.LogConfig.Build())
|
logConfMsg = serial.ToTypedMessage(c.LogConfig.Build())
|
||||||
|
} else {
|
||||||
|
logConfMsg = serial.ToTypedMessage(DefaultLogConfig())
|
||||||
}
|
}
|
||||||
// let logger module be the first App to start,
|
// let logger module be the first App to start,
|
||||||
// so that other modules could print log during initiating
|
// so that other modules could print log during initiating
|
||||||
|
|
Loading…
Reference in New Issue