close
The Wayback Machine - https://web.archive.org/web/20201114122804/https://github.com/letsencrypt/boulder/pull/3699
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

Provide formatting logger functions. #3699

Merged
merged 1 commit into from May 10, 2018

Conversation

@4a6f656c
Copy link
Contributor

@4a6f656c 4a6f656c commented May 9, 2018

A very large number of the logger calls are of the form log.Function(fmt.Sprintf(...)).
Rather than sprinkling fmt.Sprintf at every logger call site, provide formatting versions
of the logger functions and call these directly with the format and arguments.

While here remove some unnecessary trailing newlines and calls to String/Error.

@4a6f656c 4a6f656c requested a review from letsencrypt/boulder-developers as a code owner May 9, 2018
@4a6f656c 4a6f656c force-pushed the 4a6f656c:loggerfmt branch 2 times, most recently from 2076aa3 to adebfd9 May 9, 2018
A very large number of the logger calls are of the form log.Function(fmt.Sprintf(...)).
Rather than sprinkling fmt.Sprintf at every logger call site, provide formatting versions
of the logger functions and call these directly with the format and arguments.

While here remove some unnecessary trailing newlines and calls to String/Error.
@4a6f656c 4a6f656c force-pushed the 4a6f656c:loggerfmt branch from adebfd9 to 2140f71 May 9, 2018
@cpu
cpu approved these changes May 10, 2018
Copy link
Contributor

@cpu cpu left a comment

Nice clean-up, thank you @4a6f656c !

@cpu cpu requested review from jsha and rolandshoemaker May 10, 2018
@rolandshoemaker rolandshoemaker merged commit 8ebdfc6 into letsencrypt:master May 10, 2018
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
4a6f656c added a commit to 4a6f656c/boulder that referenced this pull request May 11, 2018
A very large number of the logger calls are of the form log.Function(fmt.Sprintf(...)).
Rather than sprinkling fmt.Sprintf at every logger call site, provide formatting versions
of the logger functions and call these directly with the format and arguments.

While here remove some unnecessary trailing newlines and calls to String/Error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.