From b3b2175c6792607958469c4f7661c069c946c4c7 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Sun, 22 Mar 2020 00:37:06 -0400 Subject: [PATCH] added debug messages to debug heroku --- backend/app.js | 1 + backend/config.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/app.js b/backend/app.js index efe0de6a..5f3d9ed0 100644 --- a/backend/app.js +++ b/backend/app.js @@ -131,6 +131,7 @@ async function startServer() { async function setPortItemFromENV() { return new Promise(resolve => { + console.log(backendPort.toString()); config_api.setConfigItem('ytdl_port', backendPort.toString()); setTimeout(() => resolve(true), 100); }); diff --git a/backend/config.js b/backend/config.js index fd6d8541..457c38b2 100644 --- a/backend/config.js +++ b/backend/config.js @@ -78,7 +78,8 @@ function setConfigItem(key, value) { } else { parent_object[element_name] = value; } - + console.log('setting file to'); + console.log(config_json); success = setConfigFile(config_json); return success;