New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Ensure support for warn
mode for modern deprecations
#10502
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10502 +/- ##
==========================================
- Coverage 85.83% 85.83% -0.01%
==========================================
Files 335 335
Lines 13930 13935 +5
==========================================
+ Hits 11957 11961 +4
- Misses 1973 1974 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, still, if I look correctly it doesn't cover well the scenario where just 1 deprecation was reported in summary mode. As then regular writeDeprecation
function is used, and we've just now introduced modern logs to it.
So in modern logs on, with 1 deprecation, user will see both, a sls doctor
notice and deprecation warning.
I think the only way to mitigate it is to rely on SLS_DEV_LOG_MODE
and issue that log.warning
only when have modern mode confirmed
Good catch - I didn't test that scenario and didn't catch it |
cad66f0
to
664d825
Compare
664d825
to
685274b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 👍
Reported internally