about summary refs log tree commit diff stats
path: root/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/index.ts b/src/index.ts
index c12d153..0591e6d 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -2,13 +2,13 @@ import log from "loglevel";
 
 import { server, metricsServer } from "./app";
 
-log.setLevel((import.meta.env.LOG_LEVEL || "info") as log.LogLevelDesc);
+log.setLevel((import.meta.env["LOG_LEVEL"] || "info") as log.LogLevelDesc);
 
 const metricsServed = Bun.serve(metricsServer);
-console.info(`Metrics server started on port ${metricsServed.port}`);
+log.info(`Metrics server started on port ${metricsServed.port}`);
 
 const served = Bun.serve(server);
-console.info(`Serving website on ${served.url}`);
+log.info(`Serving website on ${served.url}`);
 
 process.on("SIGTERM", function () {
   log.info("SIGTERM received, shutting down...");