Skip to content

Commit

Permalink
allow full err logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzivenu committed Oct 2, 2018
1 parent f1dc970 commit 9a829ad
Show file tree
Hide file tree
Showing 19 changed files with 72 additions and 82 deletions.
2 changes: 1 addition & 1 deletion routes/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ module.exports = function (app) {
} catch (err) {

//console.log("Sorry, an err occurred sending email");
//console.log(err.message);
//console.log(err);
console.log(err);
res.sendStatus(500);

Expand Down
2 changes: 1 addition & 1 deletion routes/office.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = async function (app) {
res.render('office/settings', { user: req.user, settings: results[0]} );
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand Down
12 changes: 6 additions & 6 deletions src/apis/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
//console.log(err.message);
//console.log(err);
res.sendStatus(500);
}

Expand All @@ -28,7 +28,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
//console.log(err.message);
//console.log(err);
res.sendStatus(500);
}

Expand All @@ -42,7 +42,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
//console.log(err.message);
//console.log(err);
res.sendStatus(500);
}

Expand All @@ -56,7 +56,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
//console.log(err.message);
//console.log(err);
res.sendStatus(500);
}

Expand All @@ -70,7 +70,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
//console.log(err.message);
//console.log(err);
res.sendStatus(500);
}

Expand All @@ -84,7 +84,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
//console.log(err.message);
//console.log(err);
res.sendStatus(500);
}

Expand Down
6 changes: 3 additions & 3 deletions src/apis/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = async function (app) {
res.json([results[0], results[1], results[2], results[3], results[4], results[5]]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -30,7 +30,7 @@ module.exports = async function (app) {
res.json([results[0], results[1], results[2]]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -45,7 +45,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand Down
14 changes: 7 additions & 7 deletions src/apis/blacklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = async function (app) {
res.sendStatus(200);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand Down Expand Up @@ -58,7 +58,7 @@ module.exports = async function (app) {
res.sendStatus(200);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -75,7 +75,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -90,7 +90,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -105,7 +105,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -120,7 +120,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -137,7 +137,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand Down
12 changes: 6 additions & 6 deletions src/apis/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = async function (app) {
res.sendStatus(200);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -31,7 +31,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -47,7 +47,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -64,7 +64,7 @@ module.exports = async function (app) {
res.sendStatus(200);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -80,7 +80,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -95,7 +95,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand Down
6 changes: 3 additions & 3 deletions src/apis/curate.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
//console.log(err.message);
//console.log(err);
res.sendStatus(500);
}

Expand All @@ -30,7 +30,7 @@ module.exports = async function (app) {
res.sendStatus(200);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -46,7 +46,7 @@ module.exports = async function (app) {
res.sendStatus(200);
}
catch (err) {
//console.log(err.message);
//console.log(err);
res.sendStatus(500);
}

Expand Down
6 changes: 3 additions & 3 deletions src/apis/curators.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -35,7 +35,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand All @@ -53,7 +53,7 @@ module.exports = async function (app) {
res.json(results[0]);
}
catch (err) {
console.log(err.message);
console.log(err);
res.sendStatus(500);
}

Expand Down
Loading

0 comments on commit 9a829ad

Please sign in to comment.