mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
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:
parent
3864b5831e
commit
9fa6b5e28b
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue