Skip to content

fix: logger changes broke trace and some hooks #4601

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

Merged
merged 1 commit into from
May 9, 2019

Conversation

rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented May 9, 2019

--log trace is broken as we are tring to iterate over object created with Object.create(null). It uses the prototype of null, so it does not have hasOwnProperty method. Filter such objects from our checks in logger.
Also nativescript-plugin-firebase uses logger.out, which has been deleted, get it back for backwards compatibility and delete it in 6.0.0 release.

PR Checklist

What is the current behavior?

What is the new behavior?

Related to #4602

`--log trace` is broken as we are tring to iterate over object created with `Object.create(null)`. It uses the prototype of null, so it does not have `hasOwnProperty` method. Filter such objects from our checks in logger.
Also nativescript-plugin-firebase uses logger.out, which has been deleted, get it back for backwards compatibility and delete it in 6.0.0 release.
@rosen-vladimirov rosen-vladimirov added this to the 5.4.0 milestone May 9, 2019
@rosen-vladimirov rosen-vladimirov requested a review from Fatme May 9, 2019 05:54
@rosen-vladimirov rosen-vladimirov self-assigned this May 9, 2019
@ghost ghost added the new PR label May 9, 2019
@cla-bot cla-bot bot added the cla: yes label May 9, 2019
@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke cli-vue

@dtopuzov
Copy link
Contributor

dtopuzov commented May 9, 2019

test cli-smoke cli-vue cli-plugin package_version#rc

@dtopuzov
Copy link
Contributor

dtopuzov commented May 9, 2019

test cli-smoke cli-vue cli-plugin

@rosen-vladimirov rosen-vladimirov merged commit 31e49d7 into master May 9, 2019
@ghost ghost removed the new PR label May 9, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-logger branch May 9, 2019 08:20
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.

4 participants