diff --git a/src/apps.js b/src/apps.js index d6b40d746..995c94c91 100644 --- a/src/apps.js +++ b/src/apps.js @@ -2628,8 +2628,9 @@ async function autoupdateApps(updateInfo, auditSource) { // updateInfo is { appI force: false }; + debug(`app ${app.fqdn} will be automatically updated`); const [updateError] = await safe(updateApp(app, data, auditSource)); - if (updateError) debug(`Error initiating autoupdate of ${appId}. ${updateError.message}`); + if (updateError) debug(`Error autoupdating ${appId}. ${updateError.message}`); } } diff --git a/src/cron.js b/src/cron.js index 159278fdc..c8b25b6c4 100644 --- a/src/cron.js +++ b/src/cron.js @@ -223,7 +223,7 @@ async function handleAutoupdatePatternChanged(pattern) { const updateInfo = updateChecker.getUpdateInfo(); // do box before app updates. for the off chance that the box logic fixes some app update logic issue if (updateInfo.box && !updateInfo.box.unstable) { - debug('Starting box autoupdate to %j', updateInfo.box); + debug('Starting box autoupdate to %j', updateInfo.box.version); const [error] = await safe(updater.updateToLatest({ skipBackup: false }, AuditSource.CRON)); if (!error) return; // do not start app updates when a box update got scheduled debug(`Failed to start box autoupdate task: ${error.message}`); @@ -232,7 +232,7 @@ async function handleAutoupdatePatternChanged(pattern) { const appUpdateInfo = _.omit(updateInfo, 'box'); if (Object.keys(appUpdateInfo).length > 0) { - debug('Starting app update to %j', appUpdateInfo); + debug('Starting app autoupdate: %j', Object.keys(appUpdateInfo)); const [error] = await safe(apps.autoupdateApps(appUpdateInfo, AuditSource.CRON)); if (error) debug(`Failed to app autoupdate: ${error.message}`); } else {