Skip to content

Commit

Permalink
AirbyteLib: Treat error trace as logs (airbytehq#34771)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Reuter authored and jatinyadav-cc committed Feb 26, 2024
1 parent dcb5c21 commit 2f94c28
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 2f94c28

Please sign in to comment.