Move to newer metrics version

This commit is contained in:
Christoph Hagen
2023-02-17 00:09:51 +01:00
parent e96b85b1cc
commit 23fd5055cd
5 changed files with 42 additions and 22 deletions

View File

@ -1,9 +1,15 @@
import App
import Vapor
var env = try Environment.detect()
var env = Environment.production //.detect()
try LoggingSystem.bootstrap(from: &env)
let app = Application(env)
defer { app.shutdown() }
try configure(app)
private let semaphore = DispatchSemaphore(value: 0)
Task {
try await configure(app)
semaphore.signal()
}
semaphore.wait()
try app.run()