Skip to content

Commit

Permalink
refactor: add log for starting listener
Browse files Browse the repository at this point in the history
Signed-off-by: Seena Fallah <[email protected]>
  • Loading branch information
clwluvw committed Oct 6, 2021
1 parent a4c3cde commit ec297c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import yaml

from prometheus_client import make_wsgi_app
from loguru import logger

from rbd_prober.prober import RBDProber, PrometheusExporter

Expand Down Expand Up @@ -59,4 +60,5 @@ def exporter_app(environ, start_response):

app = wsgi()
httpd = make_server(exporter_host, exporter_port, app)
logger.info(f"Listening on address: {exporter_host}:{exporter_port}")
httpd.serve_forever()

0 comments on commit ec297c4

Please sign in to comment.