fix: remove redundant log line on cached app found
MODIFY
lib/basedriver/helpers.js
lib/basedriver/helpers.js
@@ -46,7 +46,6 @@ function getCachedApplicationPath (link, currentModified) {
const {lastModified, fullPath} = APPLICATIONS_CACHE.get(link);
if (lastModified && currentModified.getTime() <= lastModified.getTime()) {
- logger.debug(`Reusing already downloaded application at '${fullPath}'`);
return fullPath;
}
logger.debug(`'Last-Modified' timestamp of '${link}' has been updated. ` +
@@ -83,13 +82,13 @@ async function configureApp (app, supportedAppExtensions) {
logger.info(`Using downloadable app '${newApp}'`);
const headers = await retrieveHeaders(newApp);
if (headers['last-modified']) {
- logger.debug(`Last-Modified: ${headers['last-modified']}`);
+ logger.debug(`App Last-Modified: ${headers['last-modified']}`);
currentModified = new Date(headers['last-modified']);
}
const cachedPath = getCachedApplicationPath(app, currentModified);
if (cachedPath) {
if (await fs.exists(cachedPath)) {
- logger.info(`Reusing the previously downloaded application at '${cachedPath}'`);
+ logger.info(`Reusing previously downloaded application at '${cachedPath}'`);
return verifyAppExtension(cachedPath, supportedAppExtensions);
}
logger.info(`The application at '${cachedPath}' does not exist anymore. Deleting it from the cache`);

fix: remove redundant log line on cached app found (#354)