From 7894269b8db9b1d085446de1e089b3923f87f6e8 Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Thu, 7 Nov 2019 08:27:24 -0500 Subject: [PATCH] Show output files in subfolders This fixes a tiny regexp bug that prevents output files in subfolders from being shown in the "Other logs & files" panel. We also downgrade the corresponding log because it's very noisy and does not indicate a problem. --- app/coffee/OutputCacheManager.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/coffee/OutputCacheManager.coffee b/app/coffee/OutputCacheManager.coffee index 23e179c..5ef92ec 100644 --- a/app/coffee/OutputCacheManager.coffee +++ b/app/coffee/OutputCacheManager.coffee @@ -65,7 +65,7 @@ module.exports = OutputCacheManager = async.mapSeries outputFiles, (file, cb) -> # don't send dot files as output, express doesn't serve them if OutputCacheManager._fileIsHidden(file.path) - logger.warn compileDir: compileDir, path: file.path, "ignoring dotfile in output" + logger.debug compileDir: compileDir, path: file.path, "ignoring dotfile in output" return cb() # copy other files into cache directory if valid newFile = _.clone(file) @@ -150,7 +150,7 @@ module.exports = OutputCacheManager = , callback _fileIsHidden: (path) -> - return path?.match(/^\.|\/./)? + return path?.match(/^\.|\/\./)? _checkFileIsSafe: (src, callback = (error, isSafe) ->) -> # check if we have a valid file to copy into the cache