Skip to content

Commit

Permalink
Don't use debugtoken for auto-generated queues names ('') (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
PuKoren authored Nov 6, 2017
1 parent 6d3442b commit feb6be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function serializeError(err) {
* @return {string} The queue name to use for your call
*/
function getDebugQueueName(queue, options, tokenOverride) {
if (process.env.NODE_ENV === 'production') return queue;
if (process.env.NODE_ENV === 'production' || queue === '') return queue;

// debug token can be extracted from config (env) or context
const debugToken = tokenOverride || configs.debugToken;
Expand Down

0 comments on commit feb6be6

Please sign in to comment.