Skip to content

Conversation

@alexshtin
Copy link
Contributor

What changed?
tctl won't trim Failure field in output.

Why?
In case of error/failure Failure field has important information and trim might trim it.

How did you test it?
Run tctl.

Potential risks
No risks.

@alexshtin alexshtin requested a review from mastermanu August 27, 2020 01:56
Comment on lines +129 to +132
strings.HasSuffix(fieldName, "Details") {
buf.WriteString(fmt.Sprintf("%s:%s", color.MagentaString(fieldName), fieldValue))
} else if strings.HasSuffix(fieldName, "Failure") {
buf.WriteString(fmt.Sprintf("%s:%s", color.RedString(fieldName), fieldValue))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also fixed coloring.

@alexshtin alexshtin merged commit f210123 into temporalio:master Aug 27, 2020
@alexshtin alexshtin deleted the feature/dont-trim-failure branch August 27, 2020 04:36
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