Skip to content

Commit

Permalink
Log location and deviceId used when quename not found
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Sep 13, 2024
1 parent e485d20 commit 6e694d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/src/middleware/validatequeue.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ export const validateQueue = (request, response, next) => {
const testRunnerQueue = getExistingQueue(queueName);

if (!testRunnerQueue) {
logger.info('Access to a non existing queue %s', queueName);
logger.info(
'Access to a non existing queue %s for location %s deviceId %s',
queueName,
location,
deviceId
);
request.inputValidationError = getText('error.nonexistingqueue');
return next();
}
Expand Down

0 comments on commit 6e694d5

Please sign in to comment.