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

This commit is contained in:
Hariom Balhara 2022-04-26 17:01:57 +05:30 committed by GitHub
parent 5336bf3fe2
commit 4360ada3e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

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

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