Merge pull request #6533 from overleaf/jpa-fix-debug-restore

[logger] fix restoring to non-debug log level

GitOrigin-RevId: 3e38eae00f7245c4dbd8ce996ade7071f92e7c14
This commit is contained in:
Eric Mc Sween 2022-02-16 09:04:44 -05:00 committed by Copybot
parent 3864b5831e
commit 9fa6b5e28b

View file

@ -118,10 +118,16 @@ const LoggingManager = {
if (this.isProduction) {
switch (logLevelSource) {
case 'file':
this.logLevelChecker = new FileLogLevelChecker(this.logger)
this.logLevelChecker = new FileLogLevelChecker(
this.logger,
this.defaultLevel
)
break
case 'gce_metadata':
this.logLevelChecker = new GCEMetadataLogLevelChecker(this.logger)
this.logLevelChecker = new GCEMetadataLogLevelChecker(
this.logger,
this.defaultLevel
)
break
case 'none':
break