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

Refactor: Cleanup Noisy Workflow Logging #6744

Merged
merged 2 commits into from
Sep 22, 2020

Conversation

PrismaPhonic
Copy link
Contributor

This PR cleans up noisy logging related to workflow methods, and moves printing logic up a level so that direct Wrangler method calls aren't printing output intended purely for vtctl command use from a console.

…vel so direct Wrangler method use is less noisy as well.

Signed-off-by: Peter Farr <Peter@PrismaPhonic.com>
Signed-off-by: Peter Farr <Peter@PrismaPhonic.com>
@@ -176,7 +176,7 @@ func TestWorkflowListStreams(t *testing.T) {
logger := logutil.NewMemoryLogger()
wr := New(logger, env.topoServ, env.tmc)

_, err := wr.ShowWorkflow(ctx, workflow, keyspace)
Copy link
Member

Choose a reason for hiding this comment

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

It will be better to continue to call this but assert on the returned result

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The point of this test though is to check the logger output, which will only exist if we call one level up.

Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps left a comment

Choose a reason for hiding this comment

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

lgtm

@sougou sougou merged commit e4d2296 into vitessio:master Sep 22, 2020
@enisoc enisoc deleted the pf-debug-logs-workflow branch September 22, 2020 16:46
@askdba askdba added this to the v8.0 milestone Oct 6, 2020
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.

5 participants