mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
update golog dependency
Former-commit-id: 304d3a25f41a2cf4f8f59964ce454d66be8b06c7
This commit is contained in:
5
iris.go
5
iris.go
@@ -748,6 +748,9 @@ var RegisterOnInterrupt = host.RegisterOnInterrupt
|
||||
// Shutdown gracefully terminates all the application's server hosts and any tunnels.
|
||||
// Returns an error on the first failure, otherwise nil.
|
||||
func (app *Application) Shutdown(ctx stdContext.Context) error {
|
||||
app.mu.Lock()
|
||||
defer app.mu.Unlock()
|
||||
|
||||
for i, su := range app.Hosts {
|
||||
app.logger.Debugf("Host[%d]: Shutdown now", i)
|
||||
if err := su.Shutdown(ctx); err != nil {
|
||||
@@ -1239,7 +1242,7 @@ func (app *Application) tryStartTunneling() {
|
||||
app.config.vhost = publicAddr[strings.Index(publicAddr, "://")+3:]
|
||||
|
||||
directLog := []byte(fmt.Sprintf("• Public Address: %s\n", publicAddr))
|
||||
app.Logger().Printer.Output.Write(directLog)
|
||||
app.Logger().Printer.Write(directLog)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user