# Path: jsonapi/signals.py



from django.dispatch import receiver
from jsonapi.signals import (
    signal_request as jsonapi_signal_request,
    signal_response as jsonapi_signal_response,
)
import logging


logger = logging.getLogger(__name__)


@receiver(jsonapi_signal_request)
def log_jsonapi_request(sender, signal, request=None):
    msg = "{} {}".format(request.method, request.get_full_path())
    msg = "{method} {path}".format(
        method=request.method, path=request.get_full_path())
    logger.info(msg)



# Path: jsonapi/signals.py



# Path: tests/testapp/signals.py
from django.dispatch import receiver
from jsonapi.signals import (
    signal_request as jsonapi_signal_request,
    signal_response as jsonapi_signal_response,
)
import logging



logger = logging.getLogger(__name__)


@receiver(jsonapi_signal_request)
def log_jsonapi_request(sender, signal, request=None):
    msg = "{} {}".format(request.method, request.get_full_path())
    msg = "{method} {path}".format(
        method=request.method, path=request.get_full_path())
    logger.info(msg)



@receiver(jsonapi_signal_response)