chore: add initial logging info

This commit is contained in:
dec0dOS 2024-07-09 19:31:41 +01:00
parent 95767e8373
commit 568b411b28

View file

@ -8,8 +8,7 @@ dotenv.config();
import app from "../app.js"; import app from "../app.js";
import debug from "debug"; console.log("zero-ui:server");
debug("zero-ui:server");
import http from "node:http"; import http from "node:http";
/** /**
@ -86,5 +85,5 @@ function onError(error) {
function onListening() { function onListening() {
var addr = server.address(); var addr = server.address();
var bind = typeof addr === "string" ? "pipe " + addr : "port " + addr?.port; var bind = typeof addr === "string" ? "pipe " + addr : "port " + addr?.port;
debug("Listening on " + bind); console.log("Listening on " + bind);
} }