Better error-logging

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-09 14:48:46 +01:00
parent 8a3b2113f8
commit 82e643140e
5 changed files with 13 additions and 12 deletions

View File

@@ -78,10 +78,10 @@ function startSingle(clustered, redis_enabled) {
ca: ca
};
var https = require('https');
server = https.Server(credentials, routingFunction);
server = require('http2').createSecureServer(credentials, routingFunction);
} catch(err){
console.log("Starting without https (probably on localhost)");
server = http.createServer(routingFunction);
server = require('http2').createServer(routingFunction);
}
if(clustered) {