schedule icon indicating copy to clipboard operation
schedule copied to clipboard

refactor: log class name as context on exception

Open ndeitch opened this issue 2 years ago • 0 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md
  • [x] Tests for the changes have been added (for bug fixes / features)
  • [x] Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • [ ] Bugfix
  • [ ] Feature
  • [ ] Code style update (formatting, local variables)
  • [x] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [ ] Other... Please describe:

What is the current behavior?

Issue Number: #956

What is the new behavior?

Before this change:

image

After this change:

image

Notice that the context is the called class ([CronService]) and not explorer class ([Scheduler])

Does this PR introduce a breaking change?

  • [ ] Yes
  • [x] No

ndeitch avatar Jun 22 '22 12:06 ndeitch