chore: Refactor logs (#22824)

* Refactor logs

* Add specific info to log
This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2025-07-31 01:47:38 +01:00
1 parent 7fef683abf
commit 704bbf2757
3 files changed
+5 -3

No files matched your search

+4 -1
View File
@@ -277,7 +277,10 @@ export const getBusyCalendarTimes = async (
);
}
} catch (e) {
log.warn(safeStringify(e));
log.warn(`Error getting calendar availability`, {
selectedCalendarIds: selectedCalendars.map((calendar) => calendar.externalId),
error: safeStringify(e),
});
}
return results.reduce((acc, availability) => acc.concat(availability), []);
};