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

fix: data transfer logging #20335

Merged
merged 3 commits into from
May 22, 2024
Merged

fix: data transfer logging #20335

merged 3 commits into from
May 22, 2024

Conversation

innerdvations
Copy link
Contributor

@innerdvations innerdvations commented May 20, 2024

What does it do?

  • only create one log file per cli command run
  • change log level to 'info' for file transport

Why is it needed?

Data transfer commands are currently creating a log file for every individual warning that is sent to the console, and it's an empty file because the file transport was set to 'error'

This way we get only one single file for every data transfer command that is run

How to test it?

unit test has been added

when you run a data transfer, you should only see a single log file, and it should only be created if there was a reason to create it like a warning or error.

Related issue(s)/PR(s)

DX-1408

Copy link

vercel bot commented May 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
contributor-docs ❌ Failed (Inspect) May 20, 2024 9:21am

Copy link
Member

@Bassel17 Bassel17 left a comment

Choose a reason for hiding this comment

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

LGTM

@innerdvations innerdvations merged commit cb78770 into v5/main May 22, 2024
78 of 83 checks passed
@innerdvations innerdvations deleted the fix/data-transfer-logging branch May 22, 2024 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix This PR is fixing a bug source: core:data-transfer Source is core/data-transfer package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants