ShipLogs and errors

Logs and errors

Read your app's access log, and make sure its errors actually reach the log so they can be found.

Guide2 min read

A hosted app's Logs tab shows two different things, and only one of them works with no setup. Knowing the difference is what makes a failing request debuggable instead of merely visible.

The access log always works

The Access log is the router's record of every request that reached your app: status code, method, path and duration. It needs no setup, whatever language or framework you use.

Detected errors need your app to print them

Detected errors & warnings scans your app's own output (stdout and stderr) for exceptions and tracebacks. If your app never prints its errors, the panel stays empty even while real requests fail with a 500.

Frameworks differ here:

  • Node with Express, and FastAPI with uvicorn, print an unhandled exception to the console on their own.
  • Django is the common trap. With DEBUG=False and no LOGGING setting, Django's default logging drops the traceback: a real 500 leaves no trace anywhere.

Add the snippet for your stack, deploy, and trigger the failure again. The panel checks every 5 seconds.

# settings.py
LOGGING = {
    "version": 1,
    "disable_existing_loggers": False,
    "handlers": {
        "console": {"class": "logging.StreamHandler"},
    },
    "root": {"handlers": ["console"], "level": "INFO"},
    "loggers": {
        # Prints a failing request's traceback even with DEBUG=False.
        "django.request": {
            "handlers": ["console"],
            "level": "ERROR",
            "propagate": False,
        },
    },
}

From an error to a task

Errors found in the logs appear on the app's Live Console. Create a task from any of them, or let CodePinion file recurring ones for you: see Filing tasks from logs.