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

Reduce log volume from warning about After Effects expressions #2196

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

calda
Copy link
Member

@calda calda commented Sep 19, 2023

This PR reduces the log volume created by our warnings about unsupported After Effects expressions.

#2191 mentioned that these logs are a bit excessive. This has also come up within Airbnb, where this is creating quite a lot of noise in our CI jobs.

Instead of printing this for each instance of AE expressions, we can instead just print it once per animation. We can also remove the code from the log message, since the code is potentially very long and doesn't actually contribute much to the log message.

4f88cbe sets up snapshot tests for our log output.

a9628a3 then actually changes the log output for After Effects expressions, and updates the log output snapshot. You can see much less is logged in the diff for that commit:

image

Copy link
Contributor

@miguel-jimenez-0529 miguel-jimenez-0529 left a comment

Choose a reason for hiding this comment

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

LGTM. It is so cool that we snapshot our logs 🎉

@calda
Copy link
Member Author

calda commented Sep 20, 2023

I love the point free snapshot testing library, especially for text output. Super easy!

@calda calda merged commit 68c3342 into master Sep 20, 2023
17 checks passed
@calda calda deleted the cal--reduce-log-volume-after-effects-expressions branch September 20, 2023 18:25
iago849 pushed a commit to atteamapps/lottie-ios that referenced this pull request Feb 8, 2024
iago849 pushed a commit to atteamapps/lottie-ios that referenced this pull request Feb 8, 2024
MoroziOS pushed a commit to MoroziOS/tmg-lottie-ios that referenced this pull request May 22, 2024
MoroziOS pushed a commit to MoroziOS/tmg-lottie-ios that referenced this pull request May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants