mirror of
https://github.com/fuckpiracyshield/api.git
synced 2024-05-19 21:46:19 +02:00
19 lines
340 B
Python
19 lines
340 B
Python
from piracyshield_component.log.logger import Logger
|
|
|
|
class LoggerInterceptor:
|
|
|
|
"""
|
|
Logs requests
|
|
"""
|
|
|
|
async def execute(self, r):
|
|
r.application.logger.debug(f'> GET `{r.request.uri}` from `{r.ip_address}`')
|
|
|
|
class LoggerInterceptorException(Exception):
|
|
|
|
"""
|
|
We need this as a placeholder.
|
|
"""
|
|
|
|
pass
|