mirror of
https://github.com/thaldrin/thaldrin.git
synced 2024-08-14 23:57:21 +00:00
fix prometheus startup log
This commit is contained in:
parent
bb0d9372bb
commit
1be1b4d903
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue