|
@@ -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)
|