From d961b488575ae8158a8a2c779bb5abeafaacd1c5 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 10 Sep 2014 08:20:36 +0100 Subject: [PATCH] imporved logging for session debug --- .../app/coffee/Features/Templates/TemplatesWebController.coffee | 1 - services/web/app/coffee/infrastructure/Server.coffee | 2 +- services/web/public/coffee/main/templates.coffee | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/services/web/app/coffee/Features/Templates/TemplatesWebController.coffee b/services/web/app/coffee/Features/Templates/TemplatesWebController.coffee index d1608511ea..5e21270d12 100644 --- a/services/web/app/coffee/Features/Templates/TemplatesWebController.coffee +++ b/services/web/app/coffee/Features/Templates/TemplatesWebController.coffee @@ -42,7 +42,6 @@ module.exports = TemplatesWebController = disposition = "inline" else disposition = "attachment" - console.log "HEADER", "#{disposition}; filename=#{name};" res.header({"content-disposition": "#{disposition}; filename=#{name}.#{req.params.file_type};"}) logger.log url:url, template_name: name, disposition: disposition, "proxying request to templates api" diff --git a/services/web/app/coffee/infrastructure/Server.coffee b/services/web/app/coffee/infrastructure/Server.coffee index f603180546..bafa1efd7f 100644 --- a/services/web/app/coffee/infrastructure/Server.coffee +++ b/services/web/app/coffee/infrastructure/Server.coffee @@ -62,7 +62,7 @@ app.configure () -> store: sessionStore key: cookieKey app.use (req, res, next)-> - console.log req.session, req.url, "session log" + logger.log session:req.session, sessionID:req.sessionID, url:req.url, "session log" next() # Measure expiry from last request, not last login diff --git a/services/web/public/coffee/main/templates.coffee b/services/web/public/coffee/main/templates.coffee index 6d4eee65b6..b7be0bac4c 100644 --- a/services/web/public/coffee/main/templates.coffee +++ b/services/web/public/coffee/main/templates.coffee @@ -47,7 +47,6 @@ define [ updateHits = (hits)-> $scope.safeApply -> - console.log hits $scope.hits = hits $scope.search = ->