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

CLI: write into a log file if automigrations fail #20310

Merged
merged 4 commits into from
Dec 20, 2022

Conversation

yannbf
Copy link
Member

@yannbf yannbf commented Dec 16, 2022

What I did

The automigration command now will suppress errors from the logs, while writing the entire output to a migration-storybook.log (to follow build-storybook.log convention) file. The log file will only be provided to the user if there are failures, and it will contain all the errors in full.

Here's a comparison logfile <-> command line:

image

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

- the errors will get supressed in normal output but shown in the log file
@ndelangen ndelangen merged commit aa9a5b0 into next Dec 20, 2022
@ndelangen ndelangen deleted the feat/automigration-log-file branch December 20, 2022 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants