mirror of
https://github.com/kataras/iris.git
synced 2026-01-04 02:37:14 +00:00
continue at any case on print banner
This commit is contained in:
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 {
|
||||
|
||||
Reference in New Issue
Block a user