k6 icon indicating copy to clipboard operation
k6 copied to clipboard

Add source for uncaught exceptions

Open athishaves opened this issue 1 year ago • 1 comments

What?

Add source as throwable for uncaught error log messages

Why?

Log messages for uncaught errors do not have source

Checklist

  • [x] I have performed a self-review of my code.
  • [x] I have added tests for my changes.
  • [x] I have run linter locally (make lint) and all checks pass.
  • [x] I have run tests locally (make tests) and all tests pass.
  • [ ] I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

Closes #3842

athishaves avatar Jul 28 '24 09:07 athishaves

hi @joanlopez , thanks for your reply. i have added a test for the change. also added logrus.ErrorLevel to logHook. please review

athishaves avatar Jul 31 '24 14:07 athishaves