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

chore: update CLI to v2.2.0 #826

Merged
merged 2 commits into from
Jun 20, 2022
Merged

chore: update CLI to v2.2.0 #826

merged 2 commits into from
Jun 20, 2022

Conversation

vaind
Copy link
Collaborator

@vaind vaind commented Jun 20, 2022

closes #674

@vaind vaind requested a review from bitsandfoxes as a code owner June 20, 2022 13:26
@@ -181,8 +182,30 @@ private static void UploadDebugSymbols(IDiagnosticLogger logger, BuildTarget tar
process.StartInfo.EnvironmentVariables["SENTRY_ORG"] = cliOptions.Organization;
process.StartInfo.EnvironmentVariables["SENTRY_PROJECT"] = cliOptions.Project;
process.StartInfo.EnvironmentVariables["SENTRY_AUTH_TOKEN"] = cliOptions.Auth;
process.OutputDataReceived += (sender, args) => logger.LogDebug($"sentry-cli: {args.Data.ToString()}");
process.ErrorDataReceived += (sender, args) => logger.LogError($"sentry-cli: {args.Data.ToString()}");
process.StartInfo.EnvironmentVariables["SENTRY_LOG_LEVEL"] = "info";
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be based on the options? If Debug=true we add it, based on the DiagnosticLevel?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We forward it through the logger (below), with the level parsed from the CLI output, and let that decide whether to print or not, depending on the configuration.

@vaind vaind enabled auto-merge (squash) June 20, 2022 16:27
@vaind vaind merged commit f7a136c into main Jun 20, 2022
@vaind vaind deleted the chore/sentry-cli-2.2.0 branch June 20, 2022 16:30
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.

Update Sentry CLI
3 participants