error logging improvement, regex fix

This commit is contained in:
tdurieux
2026-05-06 11:09:17 +03:00
parent e34f45522f
commit c2d43164d0
39 changed files with 747 additions and 126 deletions
+4 -1
View File
@@ -8,6 +8,9 @@ import config from "../config";
import router from "./route";
import { handleError } from "../server/routes/route-utils";
import AnonymousError from "../core/AnonymousError";
import { createLogger } from "../core/logger";
const logger = createLogger("streamer");
const app = express();
app.use(express.json());
@@ -31,5 +34,5 @@ app.all("*", (req, res) => {
);
});
app.listen(config.PORT, () => {
console.log(`Server started on http://streamer:${config.PORT}`);
logger.info("streamer started", { port: config.PORT });
});