Skip to content
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(CLI): Modern logs for slstats command #10036

Merged
merged 1 commit into from Oct 4, 2021

Conversation

pgrzesik
Copy link
Contributor

@pgrzesik pgrzesik commented Oct 1, 2021

Addresses: #9860

@codecov
Copy link

codecov bot commented Oct 1, 2021

Codecov Report

Merging #10036 (86920fa) into master (f73062f) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

❗ Current head 86920fa differs from pull request most recent head 1ad9cca. Consider uploading reports for the commit 1ad9cca to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10036      +/-   ##
==========================================
- Coverage   85.88%   85.76%   -0.13%     
==========================================
  Files         333      333              
  Lines       13416    13427      +11     
==========================================
- Hits        11523    11515       -8     
- Misses       1893     1912      +19     
Impacted Files Coverage Δ
lib/cli/write-service-outputs.js 83.33% <ø> (-2.39%) ⬇️
lib/cli/handle-error.js 85.71% <100.00%> (-0.29%) ⬇️
lib/plugins/aws/deploy/index.js 100.00% <100.00%> (ø)
lib/plugins/aws/info/index.js 100.00% <100.00%> (ø)
lib/plugins/aws/logs.js 87.71% <100.00%> (-0.42%) ⬇️
lib/plugins/aws/utils/formatLambdaLogEvent.js 100.00% <100.00%> (ø)
lib/plugins/install.js 100.00% <100.00%> (ø)
lib/plugins/print.js 71.21% <100.00%> (-28.79%) ⬇️
lib/plugins/slstats.js 100.00% <100.00%> (ø)
lib/utils/downloadTemplateFromRepo.js 96.77% <100.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f73062f...1ad9cca. Read the comment docs.

@pgrzesik pgrzesik requested a review from medikoo October 1, 2021 14:00
@@ -25,11 +26,15 @@ class SlStats {
if (enableStats) {
// set .serverlessrc config
config.set('trackingDisabled', false);
this.serverless.cli.log('Stats successfully enabled');
const message = 'Stats successfully enabled';
Copy link
Contributor

Choose a reason for hiding this comment

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

Same, here, let's not create variables to be ditched in v3 branch

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

Looks great 👍

@pgrzesik pgrzesik merged commit 0c9dae1 into master Oct 4, 2021
@pgrzesik pgrzesik deleted the modern-logs-for-slstats branch October 4, 2021 10:14
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.

None yet

2 participants