10000 release-19.1: util/log: ensure stderr is only redirected to th… by knz · Pull Request #40942 · cockroachdb/cockroach · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

release-19.1: util/log: ensure stderr is only redirected to th… #40942

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

Merged
merged 1 commit into from
Sep 22, 2019

Conversation

knz
Copy link
Contributor
@knz knz commented Sep 20, 2019

Backport 1/1 commits from #40941.

/cc @cockroachdb/release


Fixes #40940

Release justification: bug fix for a bug that severely affects our ability to troubleshoot issues

@knz knz requested review from bdarnell and petermattis September 20, 2019 16:42
@cockroach-teamcity
Copy link
Member

This change is Reviewable

The code that would redirect stderr would kick in on the first log
event for any secondary logger, not the main one, because the
predicate to activate the redirection was only using the boolean
variable on the main logger (which is always true).

This patch fixes the issue by properly using the per-logger boolean to
make this determination.

Release note (bug fix): Detailed crash reports ("panic messages")
could previously be reported in the wrong file, if SQL audit reporting
or statement logging had been activated. This has been corrected and
crash reports will now properly always appear in the main log file.
@knz knz force-pushed the backport19.1-40941 branch from 1a552cd to e912f8c Compare September 20, 2019 16:54
@knz
Copy link
Contributor Author
knz commented Sep 22, 2019

TFYR

@knz knz changed the title release-19.1: util/log: ensure stderr is only redirected to the main log release-19.1: util/log: ensure stderr is only redirected to th… Sep 22, 2019
@knz knz merged commit 6b14c0a into cockroachdb:release-19.1 Sep 22, 2019
@knz knz deleted the backport19.1-40941 branch September 22, 2019 08:08
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
0