Merge pull request #7906 from overleaf/em-downgrade-logs
Downgrade all INFO logs to DEBUG GitOrigin-RevId: 05ed582ef0721fcada059f0ad158565f50feca27
This commit is contained in:
@@ -57,7 +57,9 @@ if (!module.parent) {
|
||||
logger.fatal({ err }, `Cannot bind to ${host}:${port}. Exiting.`)
|
||||
process.exit(1)
|
||||
}
|
||||
return logger.info(`contacts starting up, listening on ${host}:${port}`)
|
||||
return logger.debug(
|
||||
`contacts starting up, listening on ${host}:${port}`
|
||||
)
|
||||
})
|
||||
})
|
||||
.catch(err => {
|
||||
|
||||
@@ -23,7 +23,7 @@ module.exports = HttpController = {
|
||||
return
|
||||
}
|
||||
|
||||
logger.log({ user_id, contact_id }, 'adding contact')
|
||||
logger.debug({ user_id, contact_id }, 'adding contact')
|
||||
|
||||
return ContactManager.touchContact(user_id, contact_id, function (error) {
|
||||
if (error != null) {
|
||||
@@ -50,7 +50,7 @@ module.exports = HttpController = {
|
||||
}
|
||||
limit = Math.min(limit, HttpController.CONTACT_LIMIT)
|
||||
|
||||
logger.log({ user_id }, 'getting contacts')
|
||||
logger.debug({ user_id }, 'getting contacts')
|
||||
|
||||
return ContactManager.getContacts(user_id, function (error, contact_dict) {
|
||||
if (error != null) {
|
||||
|
||||
@@ -2,7 +2,13 @@ const SandboxedModule = require('sandboxed-module')
|
||||
|
||||
SandboxedModule.configure({
|
||||
requires: {
|
||||
'@overleaf/logger': { log() {} },
|
||||
'@overleaf/logger': {
|
||||
debug() {},
|
||||
info() {},
|
||||
log() {},
|
||||
warn() {},
|
||||
error() {},
|
||||
},
|
||||
'@overleaf/metrics': { timeAsyncMethod() {} },
|
||||
},
|
||||
globals: { Buffer, console, process },
|
||||
|
||||
Reference in New Issue
Block a user