Skip to content

Commit b584f0a

Browse files
authored
chore: reduce log spam on Calendars (calcom#26927)
* Remove Vercel warnings on deploy * reduce log noise
1 parent 411ca11 commit b584f0a

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/app-store/_utils/getCalendar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const getCalendar = async (
9393
let calendar: Calendar = originalCalendar;
9494

9595
if (useCache) {
96-
log.info(`Calendar Cache is enabled, using CalendarCacheWrapper for credential ${credential.id}`);
96+
log.debug(`Calendar Cache is enabled, using CalendarCacheWrapper for credential ${credential.id}`);
9797
const calendarCacheEventRepository = new CalendarCacheEventRepository(prisma);
9898
calendar = new CalendarCacheWrapper({
9999
originalCalendar: calendar,
@@ -104,7 +104,7 @@ export const getCalendar = async (
104104
// Wrap ALL calendars with telemetry when telemetry is enabled
105105
// This provides consistent metrics for all calendar types
106106
if (isTelemetryEnabled()) {
107-
log.info(
107+
log.debug(
108108
`Using CalendarTelemetryWrapper for credential ${credential.id} (cacheSupported: ${isCacheSupported}, cacheEnabled: ${useCache})`
109109
);
110110
calendar = new CalendarTelemetryWrapper({

packages/features/calendar-subscription/lib/cache/CalendarCacheWrapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class CalendarCacheWrapper implements Calendar {
9393
metrics.distribution("calendar.cache.hit.duration_ms", cacheDurationMs);
9494
metrics.distribution("calendar.cache.hit.events_count", cached.length);
9595

96-
log.info("Calendar cache fetch completed", {
96+
log.debug("Calendar cache fetch completed", {
9797
cachedCalendarCount: withSync.length,
9898
cacheFetchDurationMs: cacheDurationMs,
9999
cachedEventsCount: cached.length,
@@ -120,7 +120,7 @@ export class CalendarCacheWrapper implements Calendar {
120120
metrics.distribution("calendar.cache.miss.duration_ms", originalDurationMs);
121121
metrics.distribution("calendar.cache.miss.events_count", original.length);
122122

123-
log.info("Original calendar fetch completed", {
123+
log.debug("Original calendar fetch completed", {
124124
originalCalendarCount: withoutSync.length,
125125
originalFetchDurationMs: originalDurationMs,
126126
originalEventsCount: original.length,

packages/features/calendar-subscription/lib/telemetry/CalendarTelemetryWrapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class CalendarTelemetryWrapper implements Calendar {
104104
},
105105
});
106106

107-
log.info("Calendar fetch completed", {
107+
log.debug("Calendar fetch completed", {
108108
calendarCount: selectedCalendars.length,
109109
totalFetchDurationMs,
110110
totalEventsCount: results.length,
@@ -170,7 +170,7 @@ export class CalendarTelemetryWrapper implements Calendar {
170170
}
171171
);
172172

173-
log.info("Calendar fetch with timezones completed", {
173+
log.debug("Calendar fetch with timezones completed", {
174174
calendarCount: selectedCalendars.length,
175175
totalFetchDurationMs,
176176
totalEventsCount: results?.length ?? 0,

0 commit comments

Comments
 (0)