mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 20:37:05 +00:00
simple version checker ✌️
Former-commit-id: 077b9c9816211c84adda864a832acf8c1296eeaf
This commit is contained in:
5
iris.go
5
iris.go
@@ -647,6 +647,11 @@ func (app *Application) Run(serve Runner, withOrWithout ...Configurator) error {
|
||||
|
||||
app.Configure(withOrWithout...)
|
||||
app.logger.Debugf("Application: running using %d host(s)", len(app.Hosts)+1)
|
||||
|
||||
if !app.config.DisableVersionCheck && app.logger.Printer.IsTerminal {
|
||||
go CheckVersion()
|
||||
}
|
||||
|
||||
// this will block until an error(unless supervisor's DeferFlow called from a Task).
|
||||
err := serve(app)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user