Скорректировал разделитель в трейс логах
This commit is contained in:
@@ -71,7 +71,7 @@ class TraceResponseRenderer:
|
||||
f"trace_id: {trace_view.trace_id}",
|
||||
f"parent_id: {trace_view.parent_id or ''}",
|
||||
*self._child_id_lines(trace_view.child_ids),
|
||||
"--------------------------------------------------",
|
||||
"------------------------------",
|
||||
]
|
||||
previous_step: str | None = None
|
||||
for record in trace_view.records:
|
||||
@@ -79,7 +79,7 @@ class TraceResponseRenderer:
|
||||
if previous_step is None:
|
||||
lines.append(f"step: {current_step}")
|
||||
elif current_step != previous_step:
|
||||
lines.append("--------------------------------------------------")
|
||||
lines.append("------------------------------")
|
||||
lines.append(f"step: {current_step}")
|
||||
previous_step = current_step
|
||||
lines.append(self._text_message(record, request.include_attrs_json))
|
||||
@@ -177,7 +177,7 @@ class TraceResponseRenderer:
|
||||
self._html_plain_line(f"parent_id: {self._optional_trace_link(trace_view.parent_id, request)}"),
|
||||
self._html_plain_line("child_ids:"),
|
||||
*(self._html_plain_line(f" - {self._trace_link(child_id, request)}") for child_id in trace_view.child_ids),
|
||||
self._html_plain_line("--------------------------------------------------"),
|
||||
self._html_plain_line("------------------------------"),
|
||||
]
|
||||
previous_step: str | None = None
|
||||
for record in trace_view.records:
|
||||
@@ -187,7 +187,7 @@ class TraceResponseRenderer:
|
||||
lines.append(self._html_plain_line(""))
|
||||
elif current_step != previous_step:
|
||||
lines.append(self._html_plain_line(""))
|
||||
lines.append(self._html_plain_line("--------------------------------------------------"))
|
||||
lines.append(self._html_plain_line("------------------------------"))
|
||||
lines.append(self._html_step_line(current_step))
|
||||
lines.append(self._html_plain_line(""))
|
||||
previous_step = current_step
|
||||
|
||||
Reference in New Issue
Block a user