mirror of
https://github.com/lwch/natpass
synced 2025-10-16 09:50:37 +08:00
defer flushing log
This commit is contained in:
@@ -32,6 +32,7 @@ func main() {
|
||||
cfg := global.LoadConf(*conf)
|
||||
|
||||
logging.SetSizeRotate(cfg.LogDir, "np-svr", int(cfg.LogSize.Bytes()), cfg.LogRotate, true)
|
||||
defer logging.Flush()
|
||||
|
||||
cert, err := tls.LoadX509KeyPair(cfg.TLSCrt, cfg.TLSKey)
|
||||
runtime.Assert(err)
|
||||
|
Reference in New Issue
Block a user