diff --git a/Sources/App/configure.swift b/Sources/App/configure.swift index e95ee02..6021e33 100755 --- a/Sources/App/configure.swift +++ b/Sources/App/configure.swift @@ -50,13 +50,13 @@ public func configure(_ app: Application) throws { provider = .init(observer: monitor, accessManager: config.authenticationTokens) provider.asyncScheduler = asyncScheduler provider.registerRoutes(app) + monitor.saveCurrentListOfMetricsToLogFolder() asyncScheduler.schedule { _ = try await status.update(.nominal) await deviceManager.updateDeviceConnectionMetric() } - print("[\(df.string(from: Date()))] Server started") log("[\(df.string(from: Date()))] Server started") // Gracefully shut down by closing potentially open socket