Skip to content

util/log: make log.Safe() work with other fmt specs than %v#35825

Closed
knz wants to merge 1 commit intocockroachdb:masterfrom
knz:20190316-log-safe
Closed

util/log: make log.Safe() work with other fmt specs than %v#35825
knz wants to merge 1 commit intocockroachdb:masterfrom
knz:20190316-log-safe

Conversation

@knz
Copy link
Copy Markdown
Contributor

@knz knz commented Mar 16, 2019

This goes alongside #35821.
We want to use log.Safe() also for parameters printed via %d, etc.

Release note: None

@knz knz requested review from dt and tbg March 16, 2019 13:03
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@knz knz force-pushed the 20190316-log-safe branch 2 times, most recently from c264a54 to f1fbde2 Compare March 17, 2019 10:29
@knz knz requested a review from a team as a code owner March 17, 2019 10:29
@knz knz force-pushed the 20190316-log-safe branch from f1fbde2 to 71d08d6 Compare March 17, 2019 11:26
craig bot pushed a commit that referenced this pull request Mar 18, 2019
35821: sql,*: error handling improvements r=knz a=knz

Subsumes #35825.
Subsumes #35820.

This PR replaces uses of `errors.New`, `errors.Errorf` and `errors.Wrap` by their `pgerror` equivalents. It also embeds the subsumed PRs; see those PR's discussion for details.

Co-authored-by: Raphael 'kena' Poss <knz@cockroachlabs.com>
@knz
Copy link
Copy Markdown
Contributor Author

knz commented Mar 18, 2019

Subsumed by #35821

@knz knz closed this Mar 18, 2019
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