Skip to content

remove fields #123

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

Merged
2 commits merged into from
Aug 15, 2019
Merged

remove fields #123

2 commits merged into from
Aug 15, 2019

Conversation

ghost
Copy link

@ghost ghost commented Aug 15, 2019

No description provided.

gbus/worker.go Outdated
@@ -151,7 +151,7 @@ func (worker *worker) extractBusMessage(delivery amqp.Delivery) (*BusMessage, er
var decErr error
bm.Payload, decErr = worker.serializer.Decode(delivery.Body, bm.PayloadFQN)
if decErr != nil {
worker.log().WithError(decErr).WithField("message", delivery).Error("failed to decode message. rejected as poison")
worker.log().WithError(decErr).WithField("fqn", bm.PayloadFQN).Error("failed to decode message. rejected as poison")
Copy link
Contributor

Choose a reason for hiding this comment

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

we use message_name as the field name to log when logging this in other places so let's align on that

Suggested change
worker.log().WithError(decErr).WithField("fqn", bm.PayloadFQN).Error("failed to decode message. rejected as poison")
worker.log().WithError(decErr).WithField("meessage_name", bm.PayloadFQN).Error("failed to decode message. rejected as poison")

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 75.316% when pulling 65aaf60 on fix_logs_structure into 5b6de51 on v1.x.

@ghost ghost requested a review from rhinof August 15, 2019 18:29
@ghost ghost merged commit 82eb197 into v1.x Aug 15, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix_logs_structure branch August 15, 2019 18:35
This pull request was closed.
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