chore: update tslog from 3.2.1 to 4.9.2 (#11717)
Co-authored-by: zomars <[email protected]>
This commit is contained in:
1 parent
9e927af813
commit
63416d4f33
61 files changed
+441
-105
No files matched your search
@@ -9,7 +9,7 @@ type ResendEmailOptions = {
|
||||
};
|
||||
};
|
||||
|
||||
const log = logger.getChildLogger({ prefix: [`[[Auth] `] });
|
||||
const log = logger.getSubLogger({ prefix: [`[[Auth] `] });
|
||||
|
||||
export const resendVerifyEmail = async ({ ctx }: ResendEmailOptions) => {
|
||||
if (ctx.user.emailVerified) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { prisma } from "@calcom/prisma";
|
||||
import { getBusyCalendarTimes } from "@calcom/core/CalendarManager";
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import { prisma } from "@calcom/prisma";
|
||||
import type { EventBusyDate } from "@calcom/types/Calendar";
|
||||
|
||||
import { TRPCError } from "@trpc/server";
|
||||
|
||||
@@ -268,7 +268,7 @@ export function getRegularOrDynamicEventType(
|
||||
export async function getAvailableSlots({ input, ctx }: GetScheduleOptions) {
|
||||
const orgDetails = orgDomainConfig(ctx?.req?.headers.host ?? "");
|
||||
if (process.env.INTEGRATION_TEST_MODE === "true") {
|
||||
logger.setSettings({ minLevel: "silly" });
|
||||
logger.settings.minLevel = 2;
|
||||
}
|
||||
const startPrismaEventTypeGet = performance.now();
|
||||
const eventType = await getRegularOrDynamicEventType(input, orgDetails);
|
||||
@@ -279,10 +279,10 @@ export async function getAvailableSlots({ input, ctx }: GetScheduleOptions) {
|
||||
}
|
||||
|
||||
if (isEventTypeLoggingEnabled({ eventTypeId: eventType.id })) {
|
||||
logger.setSettings({ minLevel: "debug" });
|
||||
logger.settings.minLevel = 2;
|
||||
}
|
||||
|
||||
const loggerWithEventDetails = logger.getChildLogger({
|
||||
const loggerWithEventDetails = logger.getSubLogger({
|
||||
prefix: ["getAvailableSlots", `${eventType.id}:${input.usernameList}/${input.eventTypeSlug}`],
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user