mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 02:31:04 +01:00
continue at any case on print banner
This commit is contained in:
parent
9a38c34911
commit
bd13342149
7
iris.go
7
iris.go
|
@ -175,6 +175,13 @@ func (s *Iris) initMailService() {
|
|||
func (s *Iris) printBanner() {
|
||||
c := color.New(color.FgHiBlue).Add(color.Bold)
|
||||
printTicker := utils.NewTicker()
|
||||
// for ANY case, we don't want to panic on print banner if anything goes bad
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
printTicker.Stop()
|
||||
}
|
||||
}()
|
||||
|
||||
i := 0
|
||||
printTicker.OnTick(func() {
|
||||
if len(banner) <= i {
|
||||
|
|
Loading…
Reference in New Issue
Block a user