mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-12 19:31:30 +03:00
added logging to config api and subscriptions api, meaning the entire backend has the new logging system
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user