Skip to content

Commit da3a3c7

Browse files
CopilotAnmol1696
andcommitted
Add stack trace logging to error handling in req.ts
Co-authored-by: Anmol1696 <10805402+Anmol1696@users.noreply.github.com>
1 parent 68bd39a commit da3a3c7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • jobs/knative-job-worker/src

jobs/knative-job-worker/src/req.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ const request = (
6666
function (error: unknown) {
6767
if (error) {
6868
log.error(`request error for job[${jobId}] fn[${fn}]`, error);
69+
if (error instanceof Error && error.stack) {
70+
log.debug(error.stack);
71+
}
6972
return reject(error);
7073
}
7174
log.debug(`request success for job[${jobId}] fn[${fn}]`);

0 commit comments

Comments
 (0)