Skip to content

Commit e7c50a8

Browse files
committed
comment
1 parent 774498b commit e7c50a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func main() {
4444
}
4545
app := cmd.NewMainApp(cmd.AppVersion{Version: Version, Extra: formatBuiltWith()})
4646
_ = cmd.RunMainApp(app, os.Args...) // all errors should have been handled by the RunMainApp
47+
// flush the queued logs before exiting, it is a MUST, otherwise there will be log loss
4748
log.GetManager().Close()
4849
}
4950

0 commit comments

Comments
 (0)