Skip to content

Commit

Permalink
Merge pull request #984 from geoadmin/bug-PB-747-logs-2
Browse files Browse the repository at this point in the history
PB-747: Enabled logs on PROD to try to understand the blank screen issue - #patch
  • Loading branch information
ltshb authored Jul 4, 2024
2 parents 0cd4770 + b35084f commit 0b486bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ export const LogLevel = {
*/
const log = (level, ...message) => {
// In production we don't log debug level and info level
if (ENVIRONMENT === 'production' && ![LogLevel.ERROR, LogLevel.WARNING].includes(level)) {
// TODO PB-747: remove info and debug level once we found the blank screen issue
if (
ENVIRONMENT === 'production' &&
![LogLevel.ERROR, LogLevel.WARNING, LogLevel.INFO, LogLevel.DEBUG].includes(level)
) {
return
}

Expand Down

0 comments on commit 0b486bf

Please sign in to comment.