Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude state objects from destination output to reduce log size #86

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

cjwooo
Copy link
Collaborator

@cjwooo cjwooo commented Nov 3, 2023

Description

Provide description here

Type of change

  • Bug fix
  • New feature
  • Breaking change

Related issues

Fix #1

Migration notes

Describe migration notes if any

Extra info

Add any additional information

Copy link

sonarqubecloud bot commented Nov 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@cjwooo cjwooo merged commit 9162bf0 into main Nov 3, 2023
4 checks passed
@cjwooo cjwooo deleted the cwu/state branch November 3, 2023 20:04
@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2023
@cjwooo cjwooo restored the cwu/state branch November 3, 2023 20:25
@@ -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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to log at least the last one

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or perhaps let's add an option --show-state-messages?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or better --no-skip-state-messages

@tovbinm tovbinm deleted the cwu/state branch November 3, 2023 21:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants