mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2024-11-10 09:13:36 +08:00
chore: add initial logging info
This commit is contained in:
parent
95767e8373
commit
568b411b28
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue