mirror of
https://github.com/lwch/natpass
synced 2025-10-23 20:33:06 +08:00
defer flushing log
This commit is contained in:
@@ -34,6 +34,7 @@ func main() {
|
||||
cfg := global.LoadConf(*conf)
|
||||
|
||||
logging.SetSizeRotate(cfg.LogDir, "np-cli", int(cfg.LogSize.Bytes()), cfg.LogRotate, true)
|
||||
defer logging.Flush()
|
||||
|
||||
conn, err := tls.Dial("tcp", cfg.Server, nil)
|
||||
runtime.Assert(err)
|
||||
|
Reference in New Issue
Block a user