mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
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:
3
app.js
3
app.js
@@ -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);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user