Update metrics logging

This commit is contained in:
Christoph Hagen
2023-02-16 23:08:58 +01:00
parent e4f2fc547b
commit 9fcf1756ef
4 changed files with 49 additions and 27 deletions

View File

@ -5,5 +5,11 @@ var env = Environment.production
try LoggingSystem.bootstrap(from: &env)
let app = Application(env)
defer { app.shutdown() }
try configure(app)
private let semaphore = DispatchSemaphore(value: 1)
Task {
try await configure(app)
semaphore.signal()
}
semaphore.wait()
try app.run()