feat: use LOG_LEVEL from env

This commit is contained in:
2023-08-16 23:51:56 +02:00
parent 830b33462d
commit 5ee7adbd0a
2 changed files with 16 additions and 4 deletions

View File

@@ -17,5 +17,8 @@ export const SESSION_DURATION = duration ? +duration : (60 * 60 * 24);
export const JWT_SECRET = Deno.env.get("JWT_SECRET");
export const TYPESENSE_URL = Deno.env.get("TYPESENSE_URL")||"http://localhost:8108"
export const TYPESENSE_API_KEY = Deno.env.get("TYPESENSE_API_KEY")
export const TYPESENSE_URL = Deno.env.get("TYPESENSE_URL") ||
"http://localhost:8108";
export const TYPESENSE_API_KEY = Deno.env.get("TYPESENSE_API_KEY");
export const LOG_LEVEL = Deno.env.get("LOG_LEVEL") || "warn";