Log server start

This commit is contained in:
Christoph Hagen
2023-11-27 18:17:00 +01:00
parent a217db1945
commit 7f1b9a5d96
2 changed files with 11 additions and 3 deletions

View File

@ -4,7 +4,10 @@ import Vapor
var env = Environment.production //.detect()
try LoggingSystem.bootstrap(from: &env)
let app = Application(env)
defer { app.shutdown() }
defer {
app.shutdown()
shutdown()
}
try configure(app)
try app.run()