-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Do not log init message unless log priority set to 1 #5718
Changes from 5 commits
cd7f627
a8d891a
d9c42bb
4cdc63f
6225996
a3db103
90c440e
73e4c0a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,13 +40,10 @@ if (existingVersion && existingVersion !== version) { | |
} | ||
|
||
if (!existingVersion) { | ||
// eslint-disable-next-line | ||
if (process.env.NODE_ENV !== 'production') { | ||
log.log( | ||
0, | ||
`deck.gl ${version} - set deck.log.level=1 (or higher) to trace attribute updates` | ||
)(); | ||
} | ||
log.log( | ||
1, | ||
`deck.gl ${version} - set deck.log.level=1 (or higher) to trace attribute updates` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That was the part I was confused about earlier :) |
||
)(); | ||
|
||
global.deck = Object.assign(global.deck || {}, { | ||
VERSION: version, | ||
|
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 now.
Nit: This could be a one-liner, so wonder if this will pass the formatting check (
prettier-check
) in the linter. If is doesn't, runningyarn lint fix
should take care of it.