diff --git a/app.go b/app.go index 423a0a6b..32776298 100644 --- a/app.go +++ b/app.go @@ -148,7 +148,7 @@ func (app *App) Run() { BeeLogger.Info("Start https server error, confict with http.Please reset https port") return } - logs.Info("https server Running on %s", app.Server.Addr) + logs.Info("https server Running on https://%s", app.Server.Addr) if err := app.Server.ListenAndServeTLS(BConfig.Listen.HTTPSCertFile, BConfig.Listen.HTTPSKeyFile); err != nil { logs.Critical("ListenAndServeTLS: ", err) time.Sleep(100 * time.Microsecond) @@ -159,7 +159,7 @@ func (app *App) Run() { if BConfig.Listen.EnableHTTP { go func() { app.Server.Addr = addr - logs.Info("http server Running on %s", app.Server.Addr) + logs.Info("http server Running on http://%s", app.Server.Addr) if BConfig.Listen.ListenTCP4 { ln, err := net.Listen("tcp4", app.Server.Addr) if err != nil { diff --git a/router.go b/router.go index 960cd104..58de0a07 100644 --- a/router.go +++ b/router.go @@ -782,6 +782,8 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request) if BConfig.WebConfig.AutoRender { if err := execController.Render(); err != nil { logs.Error(err) + exception("503", context) + goto Admin } } }