Skip to content

Commit

Permalink
Merge pull request #5103 from opsmill/lgu-clear-stracktrace
Browse files Browse the repository at this point in the history
Use plain instead of enriched stack traceback
  • Loading branch information
LucasG0 authored Nov 29, 2024
2 parents bda92ba + 6b7d7df commit 6f9f27f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/infrahub/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import structlog
from pydantic import TypeAdapter
from structlog.dev import plain_traceback

if TYPE_CHECKING:
from structlog.types import Processor
Expand Down Expand Up @@ -57,7 +58,7 @@ def configure_logging(production: bool, log_level: str) -> None:
if production:
log_renderer = structlog.processors.JSONRenderer()
else:
log_renderer = structlog.dev.ConsoleRenderer()
log_renderer = structlog.dev.ConsoleRenderer(exception_formatter=plain_traceback)

formatter = structlog.stdlib.ProcessorFormatter(
foreign_pre_chain=shared_processors,
Expand Down

0 comments on commit 6f9f27f

Please sign in to comment.