Skip to content

Commit

Permalink
Merge pull request #985 from geoadmin/revert-984-bug-PB-747-logs-2
Browse files Browse the repository at this point in the history
Revert "PB-747: Enabled logs on PROD to try to understand the blank screen issue" - #patch
  • Loading branch information
ltshb authored Jul 16, 2024
2 parents c6598cb + f040e3e commit 4d2996c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ export const LogLevel = {
*/
const log = (level, ...message) => {
// In production we don't log debug level and info 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)
) {
if (ENVIRONMENT === 'production' && ![LogLevel.ERROR, LogLevel.WARNING].includes(level)) {
return
}

Expand Down

0 comments on commit 4d2996c

Please sign in to comment.