From f37189101057c2c45e563cf78d4b8ad9066d6e02 Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Mon, 11 Mar 2019 14:19:20 -0400 Subject: [PATCH] logging cleanup; error page display improvements; --- app.js | 2 -- views/error.pug | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index c771ccd..9cba5de 100755 --- a/app.js +++ b/app.js @@ -521,8 +521,6 @@ app.use(function(req, res, next) { var time = Date.now() - req.startTime; var memdiff = process.memoryUsage().heapUsed - req.startMem; - console.log(`Heapdiff: path=${req.path}, heapdiff=${memdiff}`); - if (global.influxdb) { var points = []; points.push({ diff --git a/views/error.pug b/views/error.pug index 7d34a22..cb725f3 100644 --- a/views/error.pug +++ b/views/error.pug @@ -5,10 +5,12 @@ block content hr if (message) - p !{message} + pre + code(class="json bg-light") !{message} else p Unknown error if (error) h2 #{error.status} - pre #{error.stack} + pre + code(class="json bg-light") #{error.stack}