import logging
from .schema import schema_handler


class SchemaContextFilter(logging.Filter):
    """
    Add the current ``schema_name`` and ``domain_url`` to log records.
    """

    def filter(self, record):
        record.schema_name = schema_handler.active.schema_name
        record.domain_url = schema_handler.active.domain_url
        return True

0daff3ea93ee2ca6e55f8c568a0feb42834b1731
<mask token>


class SchemaContextFilter(logging.Filter):
    <mask token>
    <mask token>

<mask token>


class SchemaContextFilter(logging.Filter):
    <mask token>

    def filter(self, record):
        record.schema_name = schema_handler.active.schema_name
        record.domain_url = schema_handler.active.domain_url
        return True

<mask token>


class SchemaContextFilter(logging.Filter):
    """
    Add the current ``schema_name`` and ``domain_url`` to log records.
    """

    def filter(self, record):
        record.schema_name = schema_handler.active.schema_name
        record.domain_url = schema_handler.active.domain_url
        return True

import logging
from .schema import schema_handler


class SchemaContextFilter(logging.Filter):
    """
    Add the current ``schema_name`` and ``domain_url`` to log records.
    """

    def filter(self, record):
        record.schema_name = schema_handler.active.schema_name
        record.domain_url = schema_handler.active.domain_url
        return True
