Skip to content

PB-507: Fix logging in production build#842

Merged
ltshb merged 1 commit intodevelopfrom
bug-PB-507-log
May 15, 2024
Merged

PB-507: Fix logging in production build#842
ltshb merged 1 commit intodevelopfrom
bug-PB-507-log

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented May 14, 2024

In production build debug and info messages were printed when they shouldn't

Test link

@github-actions github-actions bot added the bug label May 14, 2024
@ltshb ltshb requested a review from schtibe May 14, 2024 17:53
@cypress
Copy link

cypress bot commented May 14, 2024

Passing run #2144 ↗︎

0 204 20 0 Flakiness 0

Details:

PB-507: Fix logging in production build
Project: web-mapviewer Commit: 958aaf25f7
Status: Passed Duration: 05:39 💡
Started: May 15, 2024 6:05 AM Ended: May 15, 2024 6:11 AM

Review all test suite changes for PR #842 ↗︎

@ltshb ltshb force-pushed the bug-PB-496-external-wmts-3d branch from 64f0393 to 76a8008 Compare May 14, 2024 18:29
@ltshb ltshb requested review from ismailsunni and pakb May 15, 2024 05:59
@ltshb ltshb changed the base branch from bug-PB-496-external-wmts-3d to develop May 15, 2024 05:59
@ltshb ltshb force-pushed the bug-PB-507-log branch from 703f015 to 9c070cc Compare May 15, 2024 05:59
In production build debug and info messages were printed when they shouldn't
@ltshb ltshb force-pushed the bug-PB-507-log branch from 9c070cc to 958aaf2 Compare May 15, 2024 06:00
Copy link
Contributor

@ismailsunni ismailsunni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although I need to re-read to make sure my logic is correct.

I was wondering why not write it as

    if (ENVIRONMENT === 'production' && [LogLevel.DEBUG, LogLevel.INFO].includes(level)) {
        return
    }

Also, in line 21, it says that we only calls with LogLevel.Error, which different compare to the updated code.

@ltshb ltshb merged commit 8626779 into develop May 15, 2024
@ltshb ltshb deleted the bug-PB-507-log branch May 15, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants