Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logger call when SSR rendering fails #63

Open
BrandonShar opened this issue Jan 8, 2025 · 0 comments
Open

Add logger call when SSR rendering fails #63

BrandonShar opened this issue Jan 8, 2025 · 0 comments

Comments

@BrandonShar
Copy link
Collaborator

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant