chore: update risefront

This commit is contained in:
Hintay 2024-10-31 23:10:21 +09:00 committed by Jacky
parent d9433cb00f
commit bcf0b9c664
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D

View file

@ -114,6 +114,7 @@ func main() {
err := risefront.New(ctx, risefront.Config{
Run: Program(confPath),
Debug: cSettings.ServerSettings.RunMode == gin.DebugMode,
Name: "nginx-ui",
Addresses: []string{fmt.Sprintf("%s:%d", cSettings.ServerSettings.Host, cSettings.ServerSettings.Port)},
ErrorHandler: func(kind string, err error) {
if errors.Is(err, net.ErrClosed) {
@ -122,7 +123,7 @@ func main() {
logger.Error(kind, err)
},
})
if !errors.Is(err, context.DeadlineExceeded) &&
if err != nil && !errors.Is(err, context.DeadlineExceeded) &&
!errors.Is(err, context.Canceled) &&
!errors.Is(err, net.ErrClosed) {
logger.Error(err)