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

pull/2674/head
Hariom Balhara 2022-04-26 17:01:57 +05:30 committed by Omar López
parent 05acd26efe
commit 01fdbaa990
2 changed files with 12 additions and 4 deletions

View File

@ -323,7 +323,9 @@ export default class EventManager {
if (credential) { if (credential) {
return createMeeting(credential, event); return createMeeting(credential, event);
} else { } 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; const bookingRef = booking ? booking.references.filter((ref) => ref.type === credential.type)[0] : null;
return updateMeeting(credential, event, bookingRef); return updateMeeting(credential, event, bookingRef);
} else { } 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}`
);
} }
} }

View File

@ -323,7 +323,9 @@ export default class EventManager {
if (credential) { if (credential) {
return createMeeting(credential, event); return createMeeting(credential, event);
} else { } 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; const bookingRef = booking ? booking.references.filter((ref) => ref.type === credential.type)[0] : null;
return updateMeeting(credential, event, bookingRef); return updateMeeting(credential, event, bookingRef);
} else { } 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}`
);
} }
} }