-
Notifications
You must be signed in to change notification settings - Fork 25.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
fix(dom_adapter): remove logError from logGroup #12925
Conversation
8615908
to
edc347a
Compare
@@ -79,7 +79,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter { | |||
// TODO(tbosch): move this into a separate environment class once we have it | |||
logError(error: string): void { | |||
if (window.console) { | |||
(window.console.error || window.console.log)(error); |
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.
the behavior is not the same here (former is try error then log)
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.
fixed
@@ -92,7 +92,6 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter { | |||
logGroup(error: string): void { | |||
if (window.console) { | |||
window.console.group && window.console.group(error); | |||
this.logError(error); |
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.
probably reasonable, have you check the call sites to see if we do not rely on this printing an error
?
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.
edc347a
to
34eaa34
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes #12923