mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 06:15:32 -05:00
imporved logging for session debug
This commit is contained in:
parent
bed78665f5
commit
d961b48857
3 changed files with 1 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -47,7 +47,6 @@ define [
|
|||
|
||||
updateHits = (hits)->
|
||||
$scope.safeApply ->
|
||||
console.log hits
|
||||
$scope.hits = hits
|
||||
|
||||
$scope.search = ->
|
||||
|
|
Loading…
Reference in a new issue