Skip to content

Commit

Permalink
Merge pull request #842 from geoadmin/bug-PB-507-log
Browse files Browse the repository at this point in the history
PB-507: Fix logging in production build
  • Loading branch information
ltshb authored May 15, 2024
2 parents e82fd43 + 958aaf2 commit 8626779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export const LogLevel = {
* @param {...any} message
*/
const log = (level, ...message) => {
// In production we don't log debug level
if (ENVIRONMENT === 'production' && [LogLevel.ERROR, LogLevel.WARNING].includes(level)) {
// In production we don't log debug level and info level
if (ENVIRONMENT === 'production' && ![LogLevel.ERROR, LogLevel.WARNING].includes(level)) {
return
}

Expand Down

0 comments on commit 8626779

Please sign in to comment.