Skip to content

Add logger call when SSR rendering fails #63

@BrandonShar

Description

@BrandonShar

Python has a built in solution for this. This is an example implementation:

import logging

logger = logging.getLogger(__name__)

...

def build_first_load_context_and_template(self, data):
    if settings.INERTIA_SSR_ENABLED:
      try: 
        ...
      except Exception:
        logger.exception("Error while calling ssr render endpoint.")

Originally posted by @svengt in #61 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions