From a642d36a23007ad8bf9506f5eaa82970c1c6feaa Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:20:47 -0600 Subject: [PATCH] refactor: hide handler when is cloud version --- packages/builders/src/utils/access-log/handler.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/builders/src/utils/access-log/handler.ts b/packages/builders/src/utils/access-log/handler.ts index 9ef10bea4..64fe013bb 100644 --- a/packages/builders/src/utils/access-log/handler.ts +++ b/packages/builders/src/utils/access-log/handler.ts @@ -1,5 +1,5 @@ import { findAdmin, updateAdmin } from "@/server/services/admin"; -import { paths } from "@/server/constants"; +import { IS_CLOUD, paths } from "@/server/constants"; import { type RotatingFileStream, createStream } from "rotating-file-stream"; import { execAsync } from "../process/execAsync"; @@ -8,6 +8,9 @@ class LogRotationManager { private stream: RotatingFileStream | null = null; private constructor() { + if (IS_CLOUD) { + return; + } this.initialize().catch(console.error); }