Skip to content

Commit 4ea9894

Browse files
committed
logging: remove dup url_rule
1 parent 17f03e3 commit 4ea9894

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/warnet/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def __init__(self, backend):
6565
self.setup_logging()
6666
self.setup_rpc()
6767
self.logger.info("Started server")
68-
self.app.add_url_rule("/-/healthy", view_func=self.healthy)
6968

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

118117
def log_request():
118+
if "healthy" in request.path:
119+
return # No need to log all these
119120
if not request.path.startswith("/api/"):
120121
self.logger.debug(request.path)
121122
else:

0 commit comments

Comments
 (0)