From 1be1b4d9034086384a23eb01fd53d354f8acb9bc Mon Sep 17 00:00:00 2001 From: Lio Young Date: Sun, 16 May 2021 02:11:55 +0200 Subject: [PATCH] fix prometheus startup log --- src/utils/prometheus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/prometheus.ts b/src/utils/prometheus.ts index 3e1fac8..0567f00 100644 --- a/src/utils/prometheus.ts +++ b/src/utils/prometheus.ts @@ -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); }