Skip to content
Permalink
Browse files

Fix logging

  • Loading branch information...
nlaz committed Mar 1, 2019
1 parent af3eabc commit 54218bc1282da15eab4b0627ae2aad25c70aebf9
Showing with 1 addition and 2 deletions.
  1. +0 −1 app/controllers/tutorial.js
  2. +1 −1 app/routes.js
@@ -6,7 +6,6 @@ const router = express.Router();
router.get("/requesting", async function(req, res) {
const { query = "" } = req.query;

console.log("SEARCH", query);
if (!req.session.access_token) {
return res.render("tutorial/index");
}
@@ -9,7 +9,7 @@ module.exports.registerRoutes = app => {

module.exports.registerErrorHandlers = app => {
app.use(function(err, req, res, next) {
console.log("ERROR", err.message);
console.error(err.message);
res.status(err.status || 500);
res.render("500", {
message: err.message,

0 comments on commit 54218bc

Please sign in to comment.
You can’t perform that action at this time.