Skip to content

feat(common): add log filtering function#14793

Merged
kamilmysliwiec merged 2 commits intonestjs:masterfrom
y-nk:julien/log-level-filtering
May 5, 2025
Merged

feat(common): add log filtering function#14793
kamilmysliwiec merged 2 commits intonestjs:masterfrom
y-nk:julien/log-level-filtering

Conversation

@y-nk
Copy link
Contributor

@y-nk y-nk commented Mar 18, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

log levels can be passed manually

Issue Number: 14788

What is the new behavior?

a function which helps to smartly parse log level based on string (ideally, env var)

Does this PR introduce a breaking change?

  • Yes
  • No

Other informations

Since issue was not yet seen, I'll wait for feedback before providing docs, but as you can see in the original issue, doc-friendly explanation was already provided.

@kamilmysliwiec
Copy link
Member

CI checks fail

image

@y-nk
Copy link
Contributor Author

y-nk commented Mar 19, 2025

@kamilmysliwiec my bad, i wrongly assumed jest as test framework.

@coveralls
Copy link

coveralls commented Mar 19, 2025

Pull Request Test Coverage Report for Build e4bab927-b865-4045-832d-4034ee7ca44e

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 89.321%

Totals Coverage Status
Change from base Build 30a562b0-c3ee-4fbf-9d82-ceae6d1056c4: 0.0%
Covered Lines: 7160
Relevant Lines: 8016

💛 - Coveralls

@y-nk
Copy link
Contributor Author

y-nk commented Apr 2, 2025

@kamilmysliwiec tests are not passing but it's unrelated to my code. what to do here?

image image

@kamilmysliwiec
Copy link
Member

Can just rebase/merge master as it's already been fixed in the upstream

@y-nk y-nk force-pushed the julien/log-level-filtering branch from b081f4d to c0327c9 Compare April 2, 2025 07:27
@y-nk
Copy link
Contributor Author

y-nk commented Apr 2, 2025

@kamilmysliwiec done!

@kamilmysliwiec
Copy link
Member

image

@y-nk
Copy link
Contributor Author

y-nk commented Apr 17, 2025

@kamilmysliwiec oh damn this got reverted when i rebased 😓 let me push it again

@y-nk y-nk force-pushed the julien/log-level-filtering branch from c0327c9 to bb9e847 Compare April 17, 2025 05:54
@y-nk
Copy link
Contributor Author

y-nk commented Apr 18, 2025

@kamilmysliwiec sorry for the bad rebase. all is green now 🙏!

@kamilmysliwiec kamilmysliwiec merged commit 9d270a2 into nestjs:master May 5, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants