prevent logging ping requests
This commit is contained in:
parent
eee6684005
commit
6851e1d911
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue