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

chore: use error context to log errors rather than Go err style. #126

Merged
merged 2 commits into from Jun 29, 2021

Conversation

jrasell
Copy link
Member

@jrasell jrasell commented Jun 17, 2021

No description provided.

@jrasell jrasell requested review from lgfa29 and towe75 June 17, 2021 10:41
@jrasell jrasell self-assigned this Jun 17, 2021
Copy link
Collaborator

@towe75 towe75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with it. What is the exact difference if i use "error" here? Is it some hclog feature or just a hashicorp style convention?

@jrasell
Copy link
Member Author

jrasell commented Jun 18, 2021

I'm fine with it. What is the exact difference if i use "error" here? Is it some hclog feature or just a hashicorp style convention?

Nothing to do with hclog functionality and mostly to do with consistency. When utilising centralised log aggregation we want to ensure search and filter patterns are as easy as possible for operators. Allowing a single search of "error" across Nomad core and drivers means less overhead when creating error tracking panels. Additionally, the use of "err" is a idiomatic Go and doesn't have a common wider use.

@jrasell jrasell requested a review from jazzyfresh as a code owner June 29, 2021 07:48
@jrasell jrasell merged commit 546a481 into main Jun 29, 2021
@jrasell jrasell deleted the b-use-error-log-context branch June 29, 2021 08:28
jrasell added a commit that referenced this pull request Jun 29, 2021
jrasell added a commit that referenced this pull request Jun 29, 2021
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.

None yet

2 participants