fix(logging): correct string template for server URL

Replaced incorrect curly braces in the console log statement with proper template literals to accurately display the HOST and PORT values. This ensures the tracker URL is displayed correctly in the console, improving debugging and monitoring.
This commit is contained in:
Kumi 2024-06-14 17:14:29 +02:00
parent 36c4ee56f3
commit f2ece65e12
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -19,7 +19,7 @@ server.on('warning', (err) => {
});
server.on('listening', () => {
console.log(`Tracker is listening on http://{HOST}:{PORT}`);
console.log(`Tracker is listening on http://${HOST}:${PORT}`);
});
server.listen(PORT);