Improve the console messaging on starting the app to avoid confusion. (#292)

* Improve the console messaging on starting the app to avoid confusion.

* Revise logging to present intended URI alongside actual

---------

Co-authored-by: Danyal Aytekin <danyal@alienpaper.com>
This commit is contained in:
Sangita Mane
2023-11-15 10:26:25 +01:00
committed by GitHub
parent 13134f67de
commit 8145069fe9
2 changed files with 18 additions and 13 deletions

3
app.js
View File

@@ -38,7 +38,6 @@ function initApp(config, callback) {
const app = new EventEmitter();
app.address = null;
app.express = express();
app.server = http.createServer(app.express);
app.webservice = createClient(webserviceUrl);
@@ -179,8 +178,6 @@ function loadErrorHandling(app, config, callback) {
});
app.server.listen(config.port, error => {
const address = app.server.address();
app.address = `http://${address.address}:${address.port}`;
callback(error, app);
});
}