Skip to content

Commit

Permalink
Fix bug that caused failures to not be logged.
Browse files Browse the repository at this point in the history
  • Loading branch information
benmanns committed Jul 3, 2014
1 parent ed77c6c commit 0ea6ffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ func (w *worker) work(jobs <-chan *job, monitor *sync.WaitGroup) {
func (w *worker) run(job *job, workerFunc workerFunc) {
var err error
defer func() {
conn, err := GetConn()
if err != nil {
conn, errCon := GetConn()
if errCon != nil {
logger.Criticalf("Error on getting connection in worker %v", w)
} else {
w.finish(conn, job, err)
Expand Down

0 comments on commit 0ea6ffb

Please sign in to comment.