chore: reduce log spam on Calendars (#26927)
* Remove Vercel warnings on deploy * reduce log noise
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user