added logging to config api and subscriptions api, meaning the entire backend has the new logging system

This commit is contained in:
Isaac Grynsztein
2020-04-02 23:14:07 -04:00
parent 2f0bbca15c
commit 3990e25c18
3 changed files with 25 additions and 16 deletions

View File

@@ -53,6 +53,9 @@ const logger = winston.createLogger({
]
});
config_api.setLogger(logger);
subscriptions_api.setLogger(logger);
// var GithubContent = require('github-content');
// Set some defaults
@@ -1630,7 +1633,7 @@ app.post('/api/updatePlaylist', async (req, res) => {
logger.info(new_val);*/
success = true;
} catch(e) {
console.error(`Failed to find playlist with ID ${playlistID}`);
logger.error(`Failed to find playlist with ID ${playlistID}`);
}
res.send({