Merge pull request #2075 from overleaf/ho-setting-doc-log-level

downgrade log of no root doc to log to reduce noise

GitOrigin-RevId: f729f44b46704a26a8bcd808e64a239a0da38107
This commit is contained in:
Henry Oswald 2019-08-14 15:56:37 +01:00 committed by sharelatex
parent df2d46b332
commit 87605d835e

View file

@ -775,10 +775,7 @@ const ClsiManager = {
}
if (rootResourcePath == null) {
if (hasMainFile) {
logger.warn(
{ projectId },
'no root document found, setting to main.tex'
)
logger.log({ projectId }, 'no root document found, setting to main.tex')
rootResourcePath = 'main.tex'
} else if (numberOfDocsInProject === 1) {
// only one file, must be the main document