Refactor all app.location usages to config.appFqdn(app)

This commit is contained in:
Johannes Zellner
2017-11-09 23:08:22 +01:00
parent 1dfa689d1c
commit e43e904622
8 changed files with 16 additions and 13 deletions

View File

@@ -16,6 +16,7 @@ var appdb = require('./appdb.js'),
assert = require('assert'),
async = require('async'),
child_process = require('child_process'),
config = require('./config.js'),
debug = require('debug')('box:taskmanager'),
locker = require('./locker.js'),
sendFailureLogs = require('./logcollector.js').sendFailureLogs,
@@ -47,7 +48,7 @@ function resumeTasks(callback) {
if (app.installationState === appdb.ISTATE_ERROR) return;
debug('Creating process for %s (%s) with state %s', app.location, app.id, app.installationState);
debug('Creating process for %s (%s) with state %s', config.appFqdn(app), app.id, app.installationState);
restartAppTask(app.id, NOOP_CALLBACK); // restart because the auto-installer could have queued up tasks already
});