mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Remove a couple server logs
This commit is contained in:
parent
a91dc6d812
commit
b39883209c
2 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,6 @@ CourseInstanceHandler = class CourseInstanceHandler extends Handler
|
|||
if courseInstance
|
||||
console.log 'already made a course instance'
|
||||
return @sendSuccess(res, courseInstance) if courseInstance
|
||||
console.log 'making a new course instance'
|
||||
courseInstance = new CourseInstance({
|
||||
courseID: courseID
|
||||
members: [req.user.get('_id')]
|
||||
|
|
|
@ -30,6 +30,7 @@ productionLogging = (tokens, req, res) ->
|
|||
else if status >= 300 then color = 36
|
||||
elapsed = (new Date()) - req._startTime
|
||||
elapsedColor = if elapsed < 500 then 90 else 31
|
||||
return null if status is 404 and /\/feedback/.test req.originalUrl # We know that these usually 404 by design (bad design?)
|
||||
if (status isnt 200 and status isnt 201 and status isnt 204 and status isnt 304 and status isnt 302) or elapsed > 500
|
||||
return "\x1b[90m#{req.method} #{req.originalUrl} \x1b[#{color}m#{res.statusCode} \x1b[#{elapsedColor}m#{elapsed}ms\x1b[0m"
|
||||
null
|
||||
|
|
Loading…
Reference in a new issue