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

This commit is contained in:
Hariom Balhara authored and Omar López committed 2022-05-02 16:21:11 -06:00
1 parent 05acd26efe
commit 01fdbaa990
2 files changed
+12 -4

No files matched your search

@@ -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}`
);
}
}