schedule
schedule copied to clipboard
refactor: log class name as context on exception
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:

After this change:

Notice that the context is the called class ([CronService]
) and not explorer class ([Scheduler]
)
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No