Improve logs for 500 error in datadog for /book/event (#2593)

This commit is contained in:
Hariom Balhara
2022-04-26 11:31:57 +00:00
committed by GitHub
parent 5336bf3fe2
commit 4360ada3e4
2 changed files with 12 additions and 4 deletions
@@ -323,7 +323,9 @@ export default class EventManager {
if (credential) {
return createMeeting(credential, event);
} else {
return Promise.reject("No suitable credentials given for the requested integration name.");
return Promise.reject(
`No suitable credentials given for the requested integration name:${event.location}`
);
}
}
@@ -364,7 +366,9 @@ export default class EventManager {
const bookingRef = booking ? booking.references.filter((ref) => ref.type === credential.type)[0] : null;
return updateMeeting(credential, event, bookingRef);
} else {
return Promise.reject("No suitable credentials given for the requested integration name.");
return Promise.reject(
`No suitable credentials given for the requested integration name:${event.location}`
);
}
}
+6 -2
View File
@@ -323,7 +323,9 @@ export default class EventManager {
if (credential) {
return createMeeting(credential, event);
} else {
return Promise.reject("No suitable credentials given for the requested integration name.");
return Promise.reject(
`No suitable credentials given for the requested integration name:${event.location}`
);
}
}
@@ -364,7 +366,9 @@ export default class EventManager {
const bookingRef = booking ? booking.references.filter((ref) => ref.type === credential.type)[0] : null;
return updateMeeting(credential, event, bookingRef);
} else {
return Promise.reject("No suitable credentials given for the requested integration name.");
return Promise.reject(
`No suitable credentials given for the requested integration name:${event.location}`
);
}
}