Skip to content

Commit 7d17b44

Browse files
authored
chore: Add cache log (calcom#24954)
* Add log * Update getCalendar.ts
1 parent c6ab6b3 commit 7d17b44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/app-store/_utils/getCalendar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const log = logger.getSubLogger({ prefix: ["CalendarManager"] });
1414

1515
export const getCalendar = async (
1616
credential: CredentialForCalendarService | null,
17-
shouldServeCache?: boolean,
17+
shouldServeCache?: boolean
1818
): Promise<Calendar | null> => {
1919
if (!credential || !credential.key) return null;
2020
let { type: calendarType } = credential;
@@ -59,7 +59,7 @@ export const getCalendar = async (
5959
shouldServeCache = isCalendarSubscriptionCacheEnabled && isCalendarSubscriptionCacheEnabledForUser;
6060
}
6161
if (CalendarCacheEventService.isCalendarTypeSupported(calendarType) && shouldServeCache) {
62-
log.debug(`Calendar Cache is enabled, using CalendarCacheService for credential ${credential.id}`);
62+
log.info(`Calendar Cache is enabled, using CalendarCacheService for credential ${credential.id}`);
6363
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6464
const originalCalendar = new CalendarService(credential as any);
6565
if (originalCalendar) {

0 commit comments

Comments
 (0)