Skip to content

Commit

Permalink
Exclude state objects from destination output to reduce log size (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjwooo authored Nov 3, 2023
1 parent cc3ee90 commit 9162bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airbyte-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ function sync_local() {
tee >(jq -cR --unbuffered 'fromjson? | select(.type == "STATE") | .state.data' | tail -n 1 > "$new_source_state_file") |
# https://stedolan.github.io/jq/manual/#Colors
JQ_COLORS="1;30:0;37:0;37:0;37:0;36:1;37:1;37" \
jq -cR $jq_color_opt --unbuffered 'fromjson?' | jq -rR "$jq_dst_msg"
jq -cR $jq_color_opt --unbuffered 'fromjson? | select(.type != "STATE")' | jq -rR "$jq_dst_msg"
cp "$new_source_state_file" "$src_state_filepath"
}

Expand Down

0 comments on commit 9162bf0

Please sign in to comment.