add more debugs

This commit is contained in:
Girish Ramakrishnan
2016-09-07 00:38:27 -07:00
parent 5b9c8e517a
commit 452c976aa6
2 changed files with 3 additions and 1 deletions

View File

@@ -79,7 +79,7 @@ function configureApp(app, certFilePath, keyFilePath, callback) {
var nginxConf = ejs.render(NGINX_APPCONFIG_EJS, data);
var nginxConfigFilename = path.join(paths.NGINX_APPCONFIG_DIR, app.id + '.conf');
debug('writing config for "%s" to %s', vhost, nginxConfigFilename);
debug('writing config for "%s" to %s with options %j', vhost, nginxConfigFilename, data);
if (!safe.fs.writeFileSync(nginxConfigFilename, nginxConf)) {
debug('Error creating nginx config for "%s" : %s', vhost, safe.error.message);