Skip to content

util/log: ensure that all channel logs are displayed with -show-logs#61237

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20210228-log-scope-verbose
Mar 1, 2021
Merged

util/log: ensure that all channel logs are displayed with -show-logs#61237
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20210228-log-scope-verbose

Conversation

@knz
Copy link
Copy Markdown
Contributor

@knz knz commented Feb 28, 2021

When -show-logs is specified, the log.Scope becomes a no-op and
the default configuration in the log package is used. This is the
only time ever when the default configuration is used.

Prior to this patch, only the logging for the DEV channel would
make its way to the standard error (and the test output) in that
case. This was unfortunate, since the intent (as spelled out in a
comment already) was to display everything.

This patch fixes that.

Release justification: non-production code changes

Release note: None

@knz knz requested review from itsbilal and tbg February 28, 2021 21:04
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @itsbilal)

When `-show-logs` is specified, the `log.Scope` becomes a no-op and
the default configuration in the `log` package is used. This is the
only time ever when the default configuration is used.

Prior to this patch, only the logging for the DEV channel would
make its way to the standard error (and the test output) in that
case. This was unfortunate, since the intent (as spelled out in a
comment already) was to display everything.

This patch fixes that.

Release justification: non-production code changes

Release note: None
@knz knz force-pushed the 20210228-log-scope-verbose branch from ee0a0d0 to a3d35c8 Compare March 1, 2021 13:45
@knz
Copy link
Copy Markdown
Contributor Author

knz commented Mar 1, 2021

TFYR!

bors r=tbg

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 1, 2021

Build failed:

@knz
Copy link
Copy Markdown
Contributor Author

knz commented Mar 1, 2021

bors r=tbg

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 1, 2021

Build succeeded:

@craig craig bot merged commit 3fe1992 into cockroachdb:master Mar 1, 2021
@knz knz deleted the 20210228-log-scope-verbose branch March 1, 2021 18:49
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.

3 participants