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

Add new Logger interface and update vcs client. #227

Merged
merged 3 commits into from
Mar 30, 2022

Conversation

nishkrishnan
Copy link
Contributor

Created a new Logger interface to be used for all our logging going forward. This supports the standard structured logging functions in addition to context value extraction.

This Logger is basically pinned to the exported interfaces defined in https://github.com/logur/logur, which is an opinionated logging library that's wildly popular in the go space.

I made the conscious decision here to also remove the formatting functions from our logger as we should move towards using structured logging for everything.

The new logger should play nicely with temporal's logging system as our previous one didn't.

Finally, I removed the error logging in the github client and added debug logs around the successes. Error logging should only really happen at the highest level the error gets propagated to. I modifed the UpdateStatus logging to be info level since we've been seeing issues there recently.

msarvar
msarvar previously approved these changes Mar 30, 2022
samrabelachew
samrabelachew previously approved these changes Mar 30, 2022
@nishkrishnan nishkrishnan dismissed stale reviews from samrabelachew and msarvar via ec83a9b March 30, 2022 22:00
@nishkrishnan nishkrishnan merged commit 18a5b75 into release-v0.17.3-lyft.1 Mar 30, 2022
@nishkrishnan nishkrishnan deleted the nish/add-new-logger branch March 30, 2022 22:05
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