Skip to content

Commit 45dafdb

Browse files
committed
Properly handle getOrCreateQueue errors & add additional logging info for it
1 parent 206c54e commit 45dafdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/queue_manager.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ func (m *QueueManager) fulfillRequest(resp *http.ResponseWriter, req *http.Reque
277277
if err != nil {
278278
(*resp).WriteHeader(500)
279279
(*resp).Write([]byte(err.Error()))
280-
logger.Error(err)
280+
ErrorCounter.Inc()
281+
logger.WithFields(logrus.Fields{"function": "getOrCreateQueue", "queueType": queueType}).Error(err)
282+
return
281283
}
282284

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

0 commit comments

Comments
 (0)