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

fix: improve message for static content changes #3289

Merged
merged 5 commits into from May 24, 2021
Merged

Conversation

snitin315
Copy link
Member

@snitin315 snitin315 commented May 13, 2021

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

Yes

Motivation / Use-Case

Improve logging.

Breaking Changes

No

Additional Info

None

@codecov
Copy link

codecov bot commented May 13, 2021

Codecov Report

Merging #3289 (d0938bd) into master (3a74932) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3289      +/-   ##
==========================================
+ Coverage   95.70%   95.71%   +0.01%     
==========================================
  Files          34       34              
  Lines        1280     1285       +5     
  Branches      369      371       +2     
==========================================
+ Hits         1225     1230       +5     
  Misses         51       51              
  Partials        4        4              
Impacted Files Coverage Δ
client-src/index.js 91.07% <100.00%> (+0.41%) ⬆️
lib/Server.js 96.03% <100.00%> (ø)

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 3a74932...d0938bd. Read the comment docs.

},
'static-changed': function staticChanged(file) {
log.info(
`${file || 'Content'} from static directory was changed. Reloading...`
Copy link
Member

Choose a reason for hiding this comment

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

Can we use ${file ? "${file}" : 'Content'} from static directory was changed. Reloading...? Better to use " for special words/paths/names/etc, it's much better for reading

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated 👍🏻

@snitin315 snitin315 merged commit 970a7d7 into master May 24, 2021
@snitin315 snitin315 deleted the static-changed branch May 24, 2021 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants