Skip to content

Commit ccc63e3

Browse files
committed
fix: logs typos
1 parent cd9614f commit ccc63e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

posthog/ai/langchain/callbacks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def _pop_run_and_capture_trace_or_span(self, run_id: UUID, parent_run_id: Option
419419
if not run:
420420
return
421421
if isinstance(run, GenerationMetadata):
422-
log.warning(f"Run {run_id} is not a generation but attempted to be captured as a trace or span.")
422+
log.warning(f"Run {run_id} is a generation, but attempted to be captured as a trace or span.")
423423
return
424424
self._capture_trace_or_span(
425425
trace_id, run_id, run, outputs, self._get_parent_run_id(trace_id, run_id, parent_run_id)
@@ -471,7 +471,7 @@ def _pop_run_and_capture_generation(
471471
if not run:
472472
return
473473
if not isinstance(run, GenerationMetadata):
474-
log.warning(f"Run {run_id} is not a generation but attempted to be captured as a generation.")
474+
log.warning(f"Run {run_id} is not a generation, but attempted to be captured as a generation.")
475475
return
476476
self._capture_generation(
477477
trace_id, run_id, run, response, self._get_parent_run_id(trace_id, run_id, parent_run_id)

0 commit comments

Comments
 (0)