mirror of
https://github.com/rancher/os.git
synced 2025-09-01 23:04:41 +00:00
Add defered syslog hook
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -93,7 +93,7 @@ func sysInit(c *config.CloudConfig) (*config.CloudConfig, error) {
|
||||
}
|
||||
|
||||
func MainInit() {
|
||||
log.InitLogger()
|
||||
log.InitDeferedLogger()
|
||||
log.Infof("MainInit() start")
|
||||
if err := RunInit(); err != nil {
|
||||
log.Fatal(err)
|
||||
@@ -414,6 +414,8 @@ func RunInit() error {
|
||||
return err
|
||||
}
|
||||
|
||||
log.SyslogReady(true)
|
||||
|
||||
return pidOne()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user