Create metric list and log start once
This commit is contained in:
parent
7f1b9a5d96
commit
ab2a14e00b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user