prevent logging ping requests

This commit is contained in:
ArabCoders 2024-12-27 19:07:08 +03:00
parent eee6684005
commit 6851e1d911

View file

@ -141,6 +141,9 @@ class Main:
LOG.info(f"YTPTube v{self.config.version} - started on http://{self.config.host}:{self.config.port}")
LOG.info("=" * 40)
if self.config.access_log:
http_logger.addFilter(lambda record: "GET /ping" not in record.getMessage())
web.run_app(
self.app,
host=self.config.host,