pydantic/logfire

Sending traceback with Django Ninja

オープン

#923 opened on 2025/03/12

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Python (244 件のフォーク)github user discovery
good first issue

Repository metrics

Stars
 (4,282 個のスター)
PR merge metrics
 (平均マージ 7d 8h) (30d で 35 merged PRs)

説明

Question

Is it possible to send traceback along with the log? I am using Django.

This is the log I want to send along with with the log

Simulate unhandled exception
Traceback (most recent call last):
  File "/workspaces/gateway/.venv/lib/python3.12/site-packages/ninja/operation.py", line 120, in run
    result = self.view_func(request, **values)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspaces/gateway/app/appcore/routes/sample.py", line 135, in get_simulate_unhandled_exception
    raise Exception("Simulate unhandled exception")
Exception: Simulate unhandled exception

コントリビューターガイド