From 6fa081522d6ec810b0778f06789eedbb57abeda0 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Fri, 22 Jan 2021 11:03:47 +0000 Subject: [PATCH] add a warning for requests without build id --- services/clsi/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/clsi/app.js b/services/clsi/app.js index c87edeb3f2..930ebc3e1c 100644 --- a/services/clsi/app.js +++ b/services/clsi/app.js @@ -187,11 +187,13 @@ app.get('/project/:project_id/user/:user_id/output/*', function ( next ) { // for specific user get the path to the top level file + logger.warn({ url: req.url }, 'direct request for file in compile directory') req.url = `/${req.params.project_id}-${req.params.user_id}/${req.params[0]}` return staticCompileServer(req, res, next) }) app.get('/project/:project_id/output/*', function (req, res, next) { + logger.warn({ url: req.url }, 'direct request for file in compile directory') if ( (req.query != null ? req.query.build : undefined) != null && req.query.build.match(OutputCacheManager.BUILD_REGEX)