From b584f0a9def2fe45b2bc7c626a6fb18dfce4ee80 Mon Sep 17 00:00:00 2001 From: Volnei Munhoz Date: Fri, 16 Jan 2026 07:41:00 -0300 Subject: [PATCH] chore: reduce log spam on Calendars (#26927) * Remove Vercel warnings on deploy * reduce log noise --- packages/app-store/_utils/getCalendar.ts | 4 ++-- .../calendar-subscription/lib/cache/CalendarCacheWrapper.ts | 4 ++-- .../lib/telemetry/CalendarTelemetryWrapper.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/app-store/_utils/getCalendar.ts b/packages/app-store/_utils/getCalendar.ts index 03db283e1e..1e8953eb02 100644 --- a/packages/app-store/_utils/getCalendar.ts +++ b/packages/app-store/_utils/getCalendar.ts @@ -93,7 +93,7 @@ export const getCalendar = async ( let calendar: Calendar = originalCalendar; if (useCache) { - log.info(`Calendar Cache is enabled, using CalendarCacheWrapper for credential ${credential.id}`); + log.debug(`Calendar Cache is enabled, using CalendarCacheWrapper for credential ${credential.id}`); const calendarCacheEventRepository = new CalendarCacheEventRepository(prisma); calendar = new CalendarCacheWrapper({ originalCalendar: calendar, @@ -104,7 +104,7 @@ export const getCalendar = async ( // Wrap ALL calendars with telemetry when telemetry is enabled // This provides consistent metrics for all calendar types if (isTelemetryEnabled()) { - log.info( + log.debug( `Using CalendarTelemetryWrapper for credential ${credential.id} (cacheSupported: ${isCacheSupported}, cacheEnabled: ${useCache})` ); calendar = new CalendarTelemetryWrapper({ diff --git a/packages/features/calendar-subscription/lib/cache/CalendarCacheWrapper.ts b/packages/features/calendar-subscription/lib/cache/CalendarCacheWrapper.ts index 0f7359d85f..67b113c511 100644 --- a/packages/features/calendar-subscription/lib/cache/CalendarCacheWrapper.ts +++ b/packages/features/calendar-subscription/lib/cache/CalendarCacheWrapper.ts @@ -93,7 +93,7 @@ export class CalendarCacheWrapper implements Calendar { metrics.distribution("calendar.cache.hit.duration_ms", cacheDurationMs); metrics.distribution("calendar.cache.hit.events_count", cached.length); - log.info("Calendar cache fetch completed", { + log.debug("Calendar cache fetch completed", { cachedCalendarCount: withSync.length, cacheFetchDurationMs: cacheDurationMs, cachedEventsCount: cached.length, @@ -120,7 +120,7 @@ export class CalendarCacheWrapper implements Calendar { metrics.distribution("calendar.cache.miss.duration_ms", originalDurationMs); metrics.distribution("calendar.cache.miss.events_count", original.length); - log.info("Original calendar fetch completed", { + log.debug("Original calendar fetch completed", { originalCalendarCount: withoutSync.length, originalFetchDurationMs: originalDurationMs, originalEventsCount: original.length, diff --git a/packages/features/calendar-subscription/lib/telemetry/CalendarTelemetryWrapper.ts b/packages/features/calendar-subscription/lib/telemetry/CalendarTelemetryWrapper.ts index 69f69d6381..ff9564e9ca 100644 --- a/packages/features/calendar-subscription/lib/telemetry/CalendarTelemetryWrapper.ts +++ b/packages/features/calendar-subscription/lib/telemetry/CalendarTelemetryWrapper.ts @@ -104,7 +104,7 @@ export class CalendarTelemetryWrapper implements Calendar { }, }); - log.info("Calendar fetch completed", { + log.debug("Calendar fetch completed", { calendarCount: selectedCalendars.length, totalFetchDurationMs, totalEventsCount: results.length, @@ -170,7 +170,7 @@ export class CalendarTelemetryWrapper implements Calendar { } ); - log.info("Calendar fetch with timezones completed", { + log.debug("Calendar fetch with timezones completed", { calendarCount: selectedCalendars.length, totalFetchDurationMs, totalEventsCount: results?.length ?? 0,