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
@@ -29,7 +29,7 @@ module.exports = {
url: `http://localhost:${port}/user/${user_id}${endPath}`,
timeout: 5000,
})
logger.log(
logger.debug(
{ user_id, opts: getOpts(), key: notification_key, user_id },
'Health Check: running'
)
@@ -82,7 +82,7 @@ module.exports = {
const notification_id = body[1][0]._id
notification_key = body[1][0].key
let opts = getOpts(`/notification/${notification_id}`)
logger.log(
logger.debug(
{ notification_id, notification_key },
'Health Check: doing cleanup'
)
@@ -15,7 +15,7 @@ const metrics = require('@overleaf/metrics')
module.exports = {
getUserNotifications(req, res, next) {
logger.log(
logger.debug(
{ user_id: req.params.user_id },
'getting user unread notifications'
)
@@ -30,7 +30,7 @@ module.exports = {
},
addNotification(req, res) {
logger.log(
logger.debug(
{ user_id: req.params.user_id, notification: req.body },
'adding notification'
)
@@ -49,7 +49,7 @@ module.exports = {
},
removeNotificationId(req, res, next) {
logger.log(
logger.debug(
{
user_id: req.params.user_id,
notification_id: req.params.notification_id,
@@ -68,7 +68,7 @@ module.exports = {
},
removeNotificationKey(req, res, next) {
logger.log(
logger.debug(
{ user_id: req.params.user_id, notification_key: req.body.key },
'mark key notification as read'
)
@@ -85,7 +85,7 @@ module.exports = {
removeNotificationByKeyOnly(req, res, next) {
const notification_key = req.params.key
logger.log({ notification_key }, 'mark notification as read by key only')
logger.debug({ notification_key }, 'mark notification as read by key only')
metrics.inc('removeNotificationKey')
return Notifications.removeNotificationByKeyOnly(notification_key, err => {
if (err) return next(err)