Skip to content

Commit

Permalink
AirbyteLib: Treat error trace as logs (#34771)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Reuter authored Feb 2, 2024
1 parent 64d0a51 commit b6b73bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airbyte-lib/airbyte_lib/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
DestinationSyncMode,
Status,
SyncMode,
TraceType,
Type,
)

Expand Down Expand Up @@ -395,6 +396,8 @@ def _execute(self, args: list[str]) -> Iterator[AirbyteMessage]:
yield message
if message.type == Type.LOG:
self._add_to_logs(message.log.message)
if message.type == Type.TRACE and message.trace.type == TraceType.ERROR:
self._add_to_logs(message.trace.error.message)
except Exception:
self._add_to_logs(line)
except Exception as e:
Expand Down

0 comments on commit b6b73bd

Please sign in to comment.