Skip to content

Commit

Permalink
Properly handle getOrCreateQueue errors & add additional logging info…
Browse files Browse the repository at this point in the history
… for it
  • Loading branch information
germanoeich committed Apr 13, 2022
1 parent 206c54e commit 45dafdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/queue_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ func (m *QueueManager) fulfillRequest(resp *http.ResponseWriter, req *http.Reque
if err != nil {
(*resp).WriteHeader(500)
(*resp).Write([]byte(err.Error()))
logger.Error(err)
ErrorCounter.Inc()
logger.WithFields(logrus.Fields{"function": "getOrCreateQueue", "queueType": queueType}).Error(err)
return
}

if q.identifier != "NoAuth" && m.cluster != nil {
Expand Down

0 comments on commit 45dafdb

Please sign in to comment.