Merge pull request #7906 from overleaf/em-downgrade-logs

Downgrade all INFO logs to DEBUG

GitOrigin-RevId: 05ed582ef0721fcada059f0ad158565f50feca27
This commit is contained in:
Eric Mc Sween
2022-05-17 08:05:26 +00:00
committed by Copybot
parent efcb06f0df
commit e0d91eaa26
116 changed files with 487 additions and 423 deletions
+3 -1
View File
@@ -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 => {
+2 -2
View File
@@ -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) {
+7 -1
View File
@@ -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 },