fix prometheus startup log

This commit is contained in:
Lio Young 2021-05-16 02:11:55 +02:00
parent bb0d9372bb
commit 1be1b4d903
No known key found for this signature in database
GPG Key ID: 789795A11879E169
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export default class Prometheus {
})
this.#server = createServer(this.onRequest.bind(this));
this.#server.once('listening', () => Logger.info(`Prometheus: Listening at http://localhost:${vars.prometheus.port}`));
this.#server.once('listening', () => Logger.info({ type: 'event:prometheusStart', message: `Prometheus: Listening at http://localhost:${vars.prometheus.port}` }));
this.#server.on('error', error => console.error(error));
this.#server.listen(vars.prometheus.port);
}