Add logging for Windows test debugging purposes.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti committed 2020-12-08 13:10:26 +02:00
1 parent 5449765548
commit 9bb72c4fa2
1 file changed
+3
+3
View File
@@ -156,6 +156,7 @@ export class ExtensionDiscovery {
}
handleWatchFileAdd = async (filePath: string) => {
logger.info(`${logModule} handleWatchFileAdd ${filePath}`);
// e.g. "foo/package.json"
const relativePath = path.relative(this.localFolderPath, filePath);
@@ -164,6 +165,8 @@ export class ExtensionDiscovery {
// This safeguards against a file watch being triggered under a sub-directory which is not an extension.
const isUnderLocalFolderPath = relativePath.split(path.sep).length === 2;
logger.info(`${logModule} relativePath ${relativePath} isUnderLocalFolderPath ${isUnderLocalFolderPath}`);
if (path.basename(filePath) === manifestFilename && isUnderLocalFolderPath) {
try {
const absPath = path.dirname(filePath);