mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
add process.env['LOG_LEVEL'] varable to let us change the logging level
This commit is contained in:
parent
cd81a602fd
commit
a2ed182942
2 changed files with 3 additions and 1 deletions
|
@ -2,9 +2,11 @@ bunyan = require('bunyan')
|
||||||
|
|
||||||
module.exports = Logger =
|
module.exports = Logger =
|
||||||
initialize: (name) ->
|
initialize: (name) ->
|
||||||
|
level = process.env['LOG_LEVEL'] or "debug"
|
||||||
@logger = bunyan.createLogger
|
@logger = bunyan.createLogger
|
||||||
name: name
|
name: name
|
||||||
serializers: bunyan.stdSerializers
|
serializers: bunyan.stdSerializers
|
||||||
|
level: level
|
||||||
return @
|
return @
|
||||||
|
|
||||||
initializeErrorReporting: (sentry_dsn, options) ->
|
initializeErrorReporting: (sentry_dsn, options) ->
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "http://github.com/sharelatex/logger-sharelatex.git"
|
"url": "http://github.com/sharelatex/logger-sharelatex.git"
|
||||||
},
|
},
|
||||||
"version": "1.5.8",
|
"version": "1.5.9",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bunyan": "1.5.1",
|
"bunyan": "1.5.1",
|
||||||
"chai": "",
|
"chai": "",
|
||||||
|
|
Loading…
Reference in a new issue