mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #7906 from overleaf/em-downgrade-logs
Downgrade all INFO logs to DEBUG GitOrigin-RevId: 05ed582ef0721fcada059f0ad158565f50feca27
This commit is contained in:
@@ -69,7 +69,7 @@ function doCompile(request, callback) {
|
||||
COMPILE_TIME_BUCKETS
|
||||
)
|
||||
const timer = new Metrics.Timer('write-to-disk', 1, request.metricsOpts)
|
||||
logger.log(
|
||||
logger.debug(
|
||||
{ projectId: request.project_id, userId: request.user_id },
|
||||
'syncing resources to disk'
|
||||
)
|
||||
@@ -95,7 +95,7 @@ function doCompile(request, callback) {
|
||||
)
|
||||
return callback(error)
|
||||
}
|
||||
logger.log(
|
||||
logger.debug(
|
||||
{
|
||||
projectId: request.project_id,
|
||||
userId: request.user_id,
|
||||
@@ -257,7 +257,7 @@ function doCompile(request, callback) {
|
||||
Metrics.gauge('load-avg', loadavg[0])
|
||||
}
|
||||
const ts = timer.done()
|
||||
logger.log(
|
||||
logger.debug(
|
||||
{
|
||||
projectId: request.project_id,
|
||||
userId: request.user_id,
|
||||
@@ -498,7 +498,10 @@ function syncFromPdf(projectId, userId, page, h, v, imageName, callback) {
|
||||
if (error != null) {
|
||||
return callback(error)
|
||||
}
|
||||
logger.log({ projectId, userId, page, h, v, stdout }, 'synctex pdf output')
|
||||
logger.debug(
|
||||
{ projectId, userId, page, h, v, stdout },
|
||||
'synctex pdf output'
|
||||
)
|
||||
callback(null, SynctexOutputParser.parseEditOutput(stdout, baseDir))
|
||||
})
|
||||
}
|
||||
@@ -561,7 +564,7 @@ function _runSynctex(projectId, userId, command, imageName, callback) {
|
||||
}
|
||||
|
||||
function wordcount(projectId, userId, filename, image, callback) {
|
||||
logger.log({ projectId, userId, filename, image }, 'running wordcount')
|
||||
logger.debug({ projectId, userId, filename, image }, 'running wordcount')
|
||||
const filePath = `$COMPILE_DIR/${filename}`
|
||||
const command = [
|
||||
'texcount',
|
||||
@@ -607,7 +610,7 @@ function wordcount(projectId, userId, filename, image, callback) {
|
||||
return callback(err)
|
||||
}
|
||||
const results = _parseWordcountFromOutput(stdout)
|
||||
logger.log(
|
||||
logger.debug(
|
||||
{ projectId, userId, wordcount: results },
|
||||
'word count results'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user