Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update tslog from 3.2.1 to 4.9.2 #11717

Merged
merged 8 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/lib/getTemporaryOrgRedirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import logger from "@calcom/lib/logger";
import { safeStringify } from "@calcom/lib/safeStringify";
import type { RedirectType } from "@calcom/prisma/client";

const log = logger.getChildLogger({ prefix: ["lib", "getTemporaryOrgRedirect"] });
const log = logger.getSubLogger({ prefix: ["lib", "getTemporaryOrgRedirect"] });
export const getTemporaryOrgRedirect = async ({
slug,
redirectType,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/pages/_error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type AugmentedNextPageContext = Omit<NextPageContext, "err"> & {
err: AugmentedError;
};

const log = logger.getChildLogger({ prefix: ["[error]"] });
const log = logger.getSubLogger({ prefix: ["[error]"] });

const CustomError: NextPage<CustomErrorProps> = (props) => {
const { statusCode, err, message, hasGetInitialPropsRun } = props;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/pages/api/cron/syncAppMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { prisma } from "@calcom/prisma";
import type { AppCategories, Prisma } from "@calcom/prisma/client";

const isDryRun = process.env.CRON_ENABLE_APP_SYNC !== "true";
const log = logger.getChildLogger({
const log = logger.getSubLogger({
prefix: ["[api/cron/syncAppMeta]", ...(isDryRun ? ["(dry-run)"] : [])],
});

Expand Down
2 changes: 1 addition & 1 deletion apps/web/pages/api/logo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from "@calcom/lib/constants";
import logger from "@calcom/lib/logger";

const log = logger.getChildLogger({ prefix: ["[api/logo]"] });
const log = logger.getSubLogger({ prefix: ["[api/logo]"] });

function removePort(url: string) {
return url.replace(/:\d+$/, "");
Expand Down
4 changes: 2 additions & 2 deletions apps/web/test/utils/bookingScenario/bookingScenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

import { getMockPaymentService } from "./MockPaymentService";

logger.setSettings({ minLevel: "silly" });
const log = logger.getChildLogger({ prefix: ["[bookingScenario]"] });
logger.settings.minLevel = 0;
const log = logger.getSubLogger({ prefix: ["[bookingScenario]"] });

type InputWebhook = {
appId: string | null;
Expand Down Expand Up @@ -897,7 +897,7 @@
url: "https://UNUSED_URL",
});
},
deleteEvent: async (...rest: any[]) => {

Check warning on line 900 in apps/web/test/utils/bookingScenario/bookingScenario.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

apps/web/test/utils/bookingScenario/bookingScenario.ts#L900

[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
log.silly("mockCalendar.deleteEvent", JSON.stringify({ rest }));
// eslint-disable-next-line prefer-rest-params
deleteEventCalls.push(rest);
Expand Down Expand Up @@ -1021,7 +1021,7 @@
...videoMeetingData,
});
},
deleteMeeting: async (...rest: any[]) => {

Check warning on line 1024 in apps/web/test/utils/bookingScenario/bookingScenario.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

apps/web/test/utils/bookingScenario/bookingScenario.ts#L1024

[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
log.silly("MockVideoApiAdapter.deleteMeeting", JSON.stringify(rest));
deleteMeetingCalls.push({
credential,
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/_utils/getCalendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface CalendarApp {
};
}

const log = logger.getChildLogger({ prefix: ["CalendarManager"] });
const log = logger.getSubLogger({ prefix: ["CalendarManager"] });

/**
* @see [Using type predicates](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates)
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/basecamp3/lib/CalendarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@

constructor(credential: CredentialPayload) {
this.integrationName = "basecamp3";
getAppKeysFromSlug("basecamp3").then(({ user_agent }: any) => {

Check warning on line 62 in packages/app-store/basecamp3/lib/CalendarService.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

packages/app-store/basecamp3/lib/CalendarService.ts#L62

[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
this.userAgent = user_agent as string;
});
this.auth = this.basecampAuth(credential).then((c) => c);
this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });
}

private basecampAuth = async (credential: CredentialPayload) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/closecom/lib/CalendarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class CloseComCalendarService implements Calendar {

constructor(credential: CredentialPayload) {
this.integrationName = "closecom_other_calendar";
this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });

const parsedCredentialKey = apiKeySchema.safeParse(credential.key);

Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/closecom/test/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { vi } from "vitest";

vi.mock("@calcom/lib/logger", () => ({
default: {
getChildLogger: () => ({
getSubLogger: () => ({
debug: vi.fn(),
error: vi.fn(),
log: vi.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class ExchangeCalendarService implements Calendar {
constructor(credential: CredentialPayload) {
this.integrationName = "exchange2013_calendar";

this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });

const decryptedCredential = JSON.parse(
symmetricDecrypt(credential.key?.toString() || "", process.env.CALENDSO_ENCRYPTION_KEY || "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class ExchangeCalendarService implements Calendar {
// this.integrationName = CALENDAR_INTEGRATIONS_TYPES.exchange;
this.integrationName = "exchange2016_calendar";

this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });

const decryptedCredential = JSON.parse(
symmetricDecrypt(credential.key?.toString() || "", process.env.CALENDSO_ENCRYPTION_KEY || "")
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/exchangecalendar/lib/CalendarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class ExchangeCalendarService implements Calendar {

constructor(credential: CredentialPayload) {
this.integrationName = "exchange_calendar";
this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.payload = JSON.parse(
symmetricDecrypt(credential.key?.toString() || "", process.env.CALENDSO_ENCRYPTION_KEY || "")
);
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/googlecalendar/lib/CalendarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class GoogleCalendarService implements Calendar {
this.integrationName = "google_calendar";
this.credential = credential;
this.auth = this.googleAuth(credential);
this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.credential = credential;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/hubspot/lib/CalendarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class HubspotCalendarService implements Calendar {

this.auth = this.hubspotAuth(credential).then((r) => r);

this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });
}

private hubspotContactCreate = async (attendees: Person[]) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/intercom/api/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import getAppKeysFromSlug from "../../_utils/getAppKeysFromSlug";
import getInstalledAppPath from "../../_utils/getInstalledAppPath";
import createOAuthAppCredential from "../../_utils/oauth/createOAuthAppCredential";

const log = logger.getChildLogger({ prefix: [`[[intercom/api/callback]`] });
const log = logger.getSubLogger({ prefix: [`[[intercom/api/callback]`] });

let client_id = "";
let client_secret = "";
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/larkcalendar/api/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { LARK_HOST } from "../common";
import { getAppAccessToken } from "../lib/AppAccessToken";
import type { LarkAuthCredentials } from "../types/LarkCalendar";

const log = logger.getChildLogger({ prefix: [`[[lark/api/callback]`] });
const log = logger.getSubLogger({ prefix: [`[[lark/api/callback]`] });

const callbackQuerySchema = z.object({
code: z.string().min(1),
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/larkcalendar/api/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import prisma from "@calcom/prisma";
import { getAppKeys } from "../common";
import { sendPostMsg } from "../lib/BotService";

const log = logger.getChildLogger({ prefix: [`[lark/api/events]`] });
const log = logger.getSubLogger({ prefix: [`[lark/api/events]`] });

const larkKeysSchema = z.object({
open_verification_token: z.string(),
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/larkcalendar/lib/AppAccessToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import prisma from "@calcom/prisma";

import { LARK_HOST, getAppKeys, isExpired } from "../common";

const log = logger.getChildLogger({ prefix: [`[[LarkAppCredential]`] });
const log = logger.getSubLogger({ prefix: [`[[LarkAppCredential]`] });

function makePoolingPromise<T>(
promiseCreator: () => Promise<T | null>,
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/larkcalendar/lib/BotService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import logger from "@calcom/lib/logger";
import { LARK_HOST } from "../common";
import { getAppAccessToken } from "./AppAccessToken";

const log = logger.getChildLogger({ prefix: [`[[LarkTenantCredential]`] });
const log = logger.getSubLogger({ prefix: [`[[LarkTenantCredential]`] });

const msg = {
en_us: {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/larkcalendar/lib/CalendarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class LarkCalendarService implements Calendar {
constructor(credential: CredentialPayload) {
this.integrationName = "lark_calendar";
this.auth = this.larkAuth(credential);
this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.credential = credential;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class Office365CalendarService implements Calendar {
this.integrationName = "office365_calendar";
this.auth = this.o365Auth(credential);
this.credential = credential;
this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });
}

async createEvent(event: CalendarEvent, credentialId: number): Promise<NewCalendarEventType> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { processRoute } from "../../lib/processRoute";
import transformResponse from "../../lib/transformResponse";
import type { Response } from "../../types/types";

const log = logger.getChildLogger({ prefix: ["[routing-forms]", "[router]"] });
const log = logger.getSubLogger({ prefix: ["[routing-forms]", "[router]"] });
export default function Router({ form, message }: inferSSRProps<typeof getServerSideProps>) {
return (
<>
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/routing-forms/trpc/forms.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface FormsHandlerOptions {
};
input: TFormSchema;
}
const log = logger.getChildLogger({ prefix: ["[formsHandler]"] });
const log = logger.getSubLogger({ prefix: ["[formsHandler]"] });

export const formsHandler = async ({ ctx, input }: FormsHandlerOptions) => {
const { prisma, user } = ctx;
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/salesforce/lib/CalendarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class SalesforceCalendarService implements Calendar {
constructor(credential: CredentialPayload) {
this.integrationName = "salesforce_other_calendar";
this.conn = this.getClient(credential).then((c) => c);
this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });
}

private getClient = async (credential: CredentialPayload) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/sendgrid/lib/CalendarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class CloseComCalendarService implements Calendar {

constructor(credential: CredentialPayload) {
this.integrationName = "sendgrid_other_calendar";
this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });

const parsedCredentialKey = apiKeySchema.safeParse(credential.key);

Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/zoho-bigin/lib/CalendarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default class BiginCalendarService implements Calendar {

constructor(credential: CredentialPayload) {
this.auth = this.biginAuth(credential);
this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });
}

/***
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/zohocalendar/api/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import config from "../config.json";
import type { ZohoAuthCredentials } from "../types/ZohoCalendar";
import { appKeysSchema as zohoKeysSchema } from "../zod";

const log = logger.getChildLogger({ prefix: [`[[zohocalendar/api/callback]`] });
const log = logger.getSubLogger({ prefix: [`[[zohocalendar/api/callback]`] });

const OAUTH_BASE_URL = "https://accounts.zoho.com/oauth/v2";

Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/zohocalendar/lib/CalendarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class ZohoCalendarService implements Calendar {
constructor(credential: CredentialPayload) {
this.integrationName = "zoho_calendar";
this.auth = this.zohoAuth(credential);
this.log = logger.getChildLogger({
this.log = logger.getSubLogger({
prefix: [`[[lib] ${this.integrationName}`],
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/zohocrm/lib/CalendarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class ZohoCrmCalendarService implements Calendar {
constructor(credential: CredentialPayload) {
this.integrationName = "zohocrm_other_calendar";
this.auth = this.zohoCrmAuth(credential).then((r) => r);
this.log = logger.getChildLogger({ prefix: [`[[lib] ${this.integrationName}`] });
this.log = logger.getSubLogger({ prefix: [`[[lib] ${this.integrationName}`] });
}

private createContacts = async (attendees: Person[]) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/CalendarManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import type { EventResult } from "@calcom/types/EventManager";

import getCalendarsEvents from "./getCalendarsEvents";

const log = logger.getChildLogger({ prefix: ["CalendarManager"] });
const log = logger.getSubLogger({ prefix: ["CalendarManager"] });

export const getCalendarCredentials = (credentials: Array<CredentialPayload>) => {
const calendarCredentials = getApps(credentials, true)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/EventManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import type {
import { createEvent, updateEvent, deleteEvent } from "./CalendarManager";
import { createMeeting, updateMeeting, deleteMeeting } from "./videoClient";

const log = logger.getChildLogger({ prefix: ["EventManager"] });
const log = logger.getSubLogger({ prefix: ["EventManager"] });
export const isDedicatedIntegration = (location: string): boolean => {
return location !== MeetLocationType && location.includes("integrations:");
};
Expand Down
2 changes: 1 addition & 1 deletion packages/core/getCalendarsEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { performance } from "@calcom/lib/server/perfObserver";
import type { EventBusyDate } from "@calcom/types/Calendar";
import type { CredentialPayload } from "@calcom/types/Credential";

const log = logger.getChildLogger({ prefix: ["getCalendarsEvents"] });
const log = logger.getSubLogger({ prefix: ["getCalendarsEvents"] });
const getCalendarsEvents = async (
withCredentials: CredentialPayload[],
dateFrom: string,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/getUserAvailability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import type {

import { getBusyTimes, getBusyTimesForLimitChecks } from "./getBusyTimes";

const log = logger.getChildLogger({ prefix: ["getUserAvailability"] });
const log = logger.getSubLogger({ prefix: ["getUserAvailability"] });
const availabilitySchema = z
.object({
dateFrom: stringToDayjs,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/videoClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type { CredentialPayload } from "@calcom/types/Credential";
import type { EventResult, PartialReference } from "@calcom/types/EventManager";
import type { VideoApiAdapter, VideoApiAdapterFactory, VideoCallData } from "@calcom/types/VideoApiAdapter";

const log = logger.getChildLogger({ prefix: ["[lib] videoClient"] });
const log = logger.getSubLogger({ prefix: ["[lib] videoClient"] });

const translator = short();

Expand Down
2 changes: 1 addition & 1 deletion packages/features/auth/lib/verifyEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import logger from "@calcom/lib/logger";
import { getTranslation } from "@calcom/lib/server/i18n";
import { prisma } from "@calcom/prisma";

const log = logger.getChildLogger({ prefix: [`[[Auth] `] });
const log = logger.getSubLogger({ prefix: [`[[Auth] `] });

interface VerifyEmailType {
username?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/features/bookings/lib/handleBookingRequested.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import logger from "@calcom/lib/logger";
import { WebhookTriggerEvents } from "@calcom/prisma/enums";
import type { CalendarEvent } from "@calcom/types/Calendar";

const log = logger.getChildLogger({ prefix: ["[handleBookingRequested] book:user"] });
const log = logger.getSubLogger({ prefix: ["[handleBookingRequested] book:user"] });

/**
* Supposed to do whatever is needed when a booking is requested.
Expand Down
2 changes: 1 addition & 1 deletion packages/features/bookings/lib/handleConfirmation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { BookingStatus, WebhookTriggerEvents } from "@calcom/prisma/enums";
import { bookingMetadataSchema } from "@calcom/prisma/zod-utils";
import type { AdditionalInformation, CalendarEvent } from "@calcom/types/Calendar";

const log = logger.getChildLogger({ prefix: ["[handleConfirmation] book:user"] });
const log = logger.getSubLogger({ prefix: ["[handleConfirmation] book:user"] });

export async function handleConfirmation(args: {
user: EventManagerUser & { username: string | null };
Expand Down
6 changes: 3 additions & 3 deletions packages/features/bookings/lib/handleNewBooking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ import type { EventTypeInfo } from "../../webhooks/lib/sendPayload";
import getBookingResponsesSchema from "./getBookingResponsesSchema";

const translator = short();
const log = logger.getChildLogger({ prefix: ["[api] book:user"] });
const log = logger.getSubLogger({ prefix: ["[api] book:user"] });

type User = Prisma.UserGetPayload<typeof userSelect>;
type BufferedBusyTimes = BufferedBusyTime[];
Expand Down Expand Up @@ -685,12 +685,12 @@ async function handler(
eventType,
});

const loggerWithEventDetails = logger.getChildLogger({
const loggerWithEventDetails = logger.getSubLogger({
prefix: ["book:user", `${eventTypeId}:${reqBody.user}/${eventTypeSlug}`],
});

if (isEventTypeLoggingEnabled({ eventTypeId, usernameOrTeamName: reqBody.user })) {
logger.setSettings({ minLevel: "silly" });
logger.settings.minLevel = 0;
}

const fullName = getFullName(bookerName);
Expand Down
2 changes: 1 addition & 1 deletion packages/features/ee/payments/api/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { handlePaymentSuccess } from "@calcom/lib/payment/handlePaymentSuccess";
import { prisma } from "@calcom/prisma";
import { BookingStatus } from "@calcom/prisma/enums";

const log = logger.getChildLogger({ prefix: ["[paymentWebhook]"] });
const log = logger.getSubLogger({ prefix: ["[paymentWebhook]"] });

export const config = {
api: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import emailReminderTemplate from "./templates/emailReminderTemplate";

let sendgridAPIKey, senderEmail: string;

const log = logger.getChildLogger({ prefix: ["[emailReminderManager]"] });
const log = logger.getSubLogger({ prefix: ["[emailReminderManager]"] });
if (process.env.SENDGRID_API_KEY) {
sendgridAPIKey = process.env.SENDGRID_API_KEY as string;
senderEmail = process.env.SENDGRID_EMAIL as string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export enum timeUnitLowerCase {
MINUTE = "minute",
YEAR = "year",
}
const log = logger.getChildLogger({ prefix: ["[smsReminderManager]"] });
const log = logger.getSubLogger({ prefix: ["[smsReminderManager]"] });

export type AttendeeInBookingInfo = {
name: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
whatsappReminderTemplate,
} from "./templates/whatsapp";

const log = logger.getChildLogger({ prefix: ["[whatsappReminderManager]"] });
const log = logger.getSubLogger({ prefix: ["[whatsappReminderManager]"] });

export const scheduleWhatsappReminder = async (
evt: BookingInfo,
Expand Down
Loading
Loading