Skip to content

Conversation

@crisbeto
Copy link
Member

Currently if something throws an error right after Karma has initialized, the log will look something like the following:

HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "originalErr": {},
    "__zone_symbol__currentTask": {
      "type": "microTask",
      "state": "notScheduled",
      "source": "Promise.then",
      "zone": "<root>",
      "cancelFn": null,
      "runCount": 0
    }
  }

These changes log out the stack trace explicitly so we have some more info to work with if it happens.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 11, 2018
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

Currently if something throws an error right after Karma has initialized, the log will look something like the following:

```
HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "originalErr": {},
    "__zone_symbol__currentTask": {
      "type": "microTask",
      "state": "notScheduled",
      "source": "Promise.then",
      "zone": "<root>",
      "cancelFn": null,
      "runCount": 0
    }
  }
```

These changes log out the stack trace explicitly so we have some more info to work with if it happens.
@crisbeto crisbeto force-pushed the karma-proper-error-logging branch from 8de8aa6 to 67269de Compare February 12, 2018 22:08
@jelbourn jelbourn merged commit c3b8465 into angular:master Feb 13, 2018
CaerusKaru added a commit to angular/preboot that referenced this pull request Feb 14, 2018
CaerusKaru added a commit to angular/preboot that referenced this pull request Feb 14, 2018
andrewseguin pushed a commit that referenced this pull request Feb 20, 2018
#9888)

Currently if something throws an error right after Karma has initialized, the log will look something like the following:

```
HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "originalErr": {},
    "__zone_symbol__currentTask": {
      "type": "microTask",
      "state": "notScheduled",
      "source": "Promise.then",
      "zone": "<root>",
      "cancelFn": null,
      "runCount": 0
    }
  }
```

These changes log out the stack trace explicitly so we have some more info to work with if it happens.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants