import logging


class ErrorMiddleware(object):
    """
    logs errors that happen during view calls
    """

    def process_exception(self, request, exception):
        try:
            logging.critical('Critical exception: %s', exception, exc_info=True
                )
        except:
            pass

7ab3014edcc78b36d5c0ac14ba0525380ac06b10
<mask token>


class ErrorMiddleware(object):
    <mask token>
    <mask token>

<mask token>


class ErrorMiddleware(object):
    <mask token>

    def process_exception(self, request, exception):
        try:
            logging.critical('Critical exception: %s', exception, exc_info=True
                )
        except:
            pass

<mask token>


class ErrorMiddleware(object):
    """
    logs errors that happen during view calls
    """

    def process_exception(self, request, exception):
        try:
            logging.critical('Critical exception: %s', exception, exc_info=True
                )
        except:
            pass

import logging


class ErrorMiddleware(object):
    """
    logs errors that happen during view calls
    """

    def process_exception(self, request, exception):
        try:
            logging.critical('Critical exception: %s', exception, exc_info=True
                )
        except:
            pass
