-
Notifications
You must be signed in to change notification settings - Fork 8
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
Bugfix/console log #55
Conversation
khackskjs
commented
Feb 9, 2022
•
edited
Loading
edited
- now debug log always shows received false, I fixed it.
- to prevent wrong error log with webpack HMR, in my case vue.js web app.
Release/3.2.1
Bumps [ws](https://github.com/websockets/ws) from 7.4.2 to 7.4.6. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](websockets/ws@7.4.2...7.4.6) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.20...4.17.21) --- updated-dependencies: - dependency-name: lodash dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.1 to 1.14.7. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.13.1...v1.14.7) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
…arn/follow-redirects-1.14.7 Bump follow-redirects from 1.13.1 to 1.14.7
…arn/lodash-4.17.21 Bump lodash from 4.17.20 to 4.17.21
…arn/ws-7.4.6 Bump ws from 7.4.2 to 7.4.6
Bumps [log4js](https://github.com/log4js-node/log4js-node) from 6.3.0 to 6.4.0. - [Release notes](https://github.com/log4js-node/log4js-node/releases) - [Changelog](https://github.com/log4js-node/log4js-node/blob/master/CHANGELOG.md) - [Commits](log4js-node/log4js-node@v6.3.0...v6.4.0) --- updated-dependencies: - dependency-name: log4js dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
…arn/log4js-6.4.0 Bump log4js from 6.3.0 to 6.4.0
src/Bellhop.js
Outdated
@@ -115,7 +115,9 @@ export class Bellhop extends BellhopEventDispatcher { | |||
// Check to see if the data was sent as a stringified json | |||
if ('string' === typeof data) { | |||
try { | |||
if (data && !data.startsWith('webpack')) { |
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.
For now I'm going to request that this additional check be removed. See comment for more info
@khackskjs Thanks again for catching bugs and presenting fixes. Always appreciated! |
@902seanryan I understand what's your point and I agree that is' too specific case. as you said, it's just log without any collaption. so I suggest simply change log level with warn. |
@khackskjs console.warn is a great compromise I think! @deycorinne if it sounds good to you I say we go for it. |
@902seanryan sounds good to me. let's do it! |
@@ -307,7 +309,7 @@ export class Bellhop extends BellhopEventDispatcher { | |||
*/ | |||
logDebugMessage(received = false, message) { | |||
if (this.debug && typeof this.debug === 'function') { | |||
this.debug({ isChild: this.isChild, received: false, message: message }); | |||
this.debug({ isChild: this.isChild, received, message: message }); |
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.
@902seanryan @deycorinne Please check this line also.
false
is supposed to be removed.
thank you.
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.
Yep! that one looks good! Just need the console.error changed to a console.warn and we can merge :)
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.
@khackskjs Sorry could you point this one to develop as well?
Is there anything for me to do to merge blocked PR? |
Nope! Once its all good one of us will merge it in :) |