flush log on shutdown
This commit is contained in:
parent
f478f7545c
commit
cb00afb8bd
2
main.go
2
main.go
|
|
@ -13,6 +13,7 @@ import (
|
||||||
|
|
||||||
"9fans.net/go/plan9/client"
|
"9fans.net/go/plan9/client"
|
||||||
p9 "olliesrv/internal/p9"
|
p9 "olliesrv/internal/p9"
|
||||||
|
olog "ollie/pkg/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const serviceName = "ollie"
|
const serviceName = "ollie"
|
||||||
|
|
@ -186,4 +187,5 @@ func runServer(sockPath, pidPath string) {
|
||||||
listener.Close() //nolint:errcheck
|
listener.Close() //nolint:errcheck
|
||||||
os.Remove(sockPath)
|
os.Remove(sockPath)
|
||||||
os.Remove(pidPath)
|
os.Remove(pidPath)
|
||||||
|
olog.Flush()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in New Issue