refactor: hide handler when is cloud version

This commit is contained in:
Mauricio Siu 2024-10-04 15:20:47 -06:00
parent 72bceec62d
commit a642d36a23

View File

@ -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);
}