Skip to content

[UptimeResponder] Reduce log spam by aiohttp.access #155

@NoPlagiarism

Description

@NoPlagiarism

What cog is this feature request for?

UptimeResponder

Describe the feature request in as much detail as possible

I'm just leaving example of this code here (NEED TO BE TESTED)

from aiohttp.abc import AbstractAccessLogger
...
class EmptyAbstractAccessLogger(AbstractAccessLogger):
    def log(self, *args, **kwargs) -> None:
        return

    @property
    def enabled(self) -> bool:
        return False
...
app = web.Application(access_log_class=EmptyAbstractAccessLogger)

Why this is not a PR? Because maybe there should be a variable to turn on verbose logging or sth like that. Or turn on verbose logging when Dev cog is loaded

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions