Skip to content

Commit

Permalink
logging: remove dup url_rule
Browse files Browse the repository at this point in the history
  • Loading branch information
willcl-ark committed Mar 5, 2024
1 parent 17f03e3 commit 4ea9894
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/warnet/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def __init__(self, backend):
self.setup_logging()
self.setup_rpc()
self.logger.info("Started server")
self.app.add_url_rule("/-/healthy", view_func=self.healthy)

# register a well known /-/healthy endpoint for liveness tests
# we regard warnet as healthy if the http server is up
Expand Down Expand Up @@ -116,6 +115,8 @@ def setup_logging(self):
self.logger.info("Logging started")

def log_request():
if "healthy" in request.path:
return # No need to log all these
if not request.path.startswith("/api/"):
self.logger.debug(request.path)
else:
Expand Down

0 comments on commit 4ea9894

Please sign in to comment.