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

Improve printers, use Go 1.12 #611

Merged
merged 3 commits into from
Mar 5, 2019
Merged

Improve printers, use Go 1.12 #611

merged 3 commits into from
Mar 5, 2019

Conversation

errordeveloper
Copy link
Contributor

@errordeveloper errordeveloper commented Mar 5, 2019

Description

Turns out Go 1.12 has strings.ReplaceAll, which is quite handy. The way LogObj worked wasn't particularly great, this allows user to specify full format string (they must include one %s for the actual object. We now also ensure that the actual objects in question don't get use as formatting strings (e.g. some Kubernetes field values use % character), and we also try to serialise directly whenever API-aware serialiser fails to (e.g. unregistered APIs, missing apiVersion etc).

Closes #603.

Checklist

  • Code compiles correctly (i.e make build)
  • All unit tests passing (i.e. make test)
  • All integration tests passing (i.e. make integration-test)

@errordeveloper
Copy link
Contributor Author

Will run integration tests, just in case :)

@errordeveloper errordeveloper merged commit 0c5d060 into master Mar 5, 2019
@errordeveloper errordeveloper deleted the improve-printers branch March 5, 2019 13:11
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.

1 participant