move logger into special file

This commit is contained in:
2025-07-06 20:54:48 +02:00
parent f82d9cea79
commit c6e5c76187
13 changed files with 77 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
import type { AccessToken } from "@twurple/auth";
import PocketBase, { RecordService } from "pocketbase";
import type { inventory } from "../items";
import { logger } from "..";
import logger from "../lib/logger";
const pocketbaseurl = process.env.POCKETBASE_URL ?? "localhost:8090";
if (pocketbaseurl === "") { logger.enverr("POCKETBASE_URL"); process.exit(1); };