Add PrintStack() while orm abnormally exit.

This commit is contained in:
colstuwjx 2019-07-31 14:08:58 +08:00
parent 32ee728078
commit b551949a2b
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import (
"fmt"
"os"
"reflect"
"runtime/debug"
"strings"
)
@ -298,6 +299,7 @@ func bootStrap() {
end:
if err != nil {
fmt.Println(err)
debug.PrintStack()
os.Exit(2)
}
}