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

prod: explicitly log every state change #184

Merged
merged 1 commit into from
Nov 15, 2014
Merged

prod: explicitly log every state change #184

merged 1 commit into from
Nov 15, 2014

Conversation

eapache
Copy link
Contributor

@eapache eapache commented Nov 15, 2014

I worked out the formal state machines of the relevant goroutines and stuck a
log message in at every state change. This should help with debugging #179.

The logs should still only trigger on broker rebalance or super-heavy traffic,
so normal operation should be quiet.

@wvanbergen

I worked out the formal state machines of the relevant goroutines and stuck a
log message in at every state change. This should help with debugging #179.

The logs should still only trigger on broker rebalance or super-heavy traffic,
so normal operation should be quiet.
@@ -696,7 +700,6 @@ func (p *Producer) returnSuccesses(batch []*MessageToSend) {
}

func (p *Producer) retryMessages(batch []*MessageToSend, err error) {
Logger.Println("Producer requeueing batch of", len(batch), "messages due to error:", err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was misleading because if the message had already been retried we would just flush it out the errors channel instead of requeueing it

@wvanbergen
Copy link
Contributor

:shipit: this stuff is invaluable when debugging.

eapache added a commit that referenced this pull request Nov 15, 2014
prod: explicitly log every state change
@eapache eapache merged commit 8df83bf into master Nov 15, 2014
@eapache eapache deleted the prod-logging branch November 15, 2014 13:48
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