Skip to content

Scheduling infrastructure for absolutely everyone.

chore: reduce log spam on Calendars (#26927)

Volnei Munhozb584f0a9def2
diff --git a/packages/app-store/_utils/getCalendar.ts b/packages/app-store/_utils/getCalendar.ts
index 03db283e1e5..1e8953eb02e 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 0f7359d85f3..67b113c511b 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 69f69d6381f..ff9564e9cad 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,