mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
logs: on the server, use template literals when possible
It's just synctactic sugar, but it is always better than executing string concatenations in one's mind. Do not do this with files in src/static, because we want to keep IE 11 compatibility.
This commit is contained in:
parent
0e972aaecf
commit
27b3b0ecd2
5 changed files with 15 additions and 15 deletions
|
@ -12,15 +12,15 @@ var serverName;
|
|||
exports.createServer = function () {
|
||||
console.log("Report bugs at https://github.com/ether/etherpad-lite/issues")
|
||||
|
||||
serverName = "Etherpad " + settings.getGitCommit() + " (http://etherpad.org)";
|
||||
serverName = `Etherpad ${settings.getGitCommit()} (http://etherpad.org)`;
|
||||
|
||||
console.log("Your Etherpad version is " + settings.getEpVersion() + " (" + settings.getGitCommit() + ")");
|
||||
console.log(`Your Etherpad version is ${settings.getEpVersion()} (${settings.getGitCommit()})`);
|
||||
|
||||
exports.restartServer();
|
||||
|
||||
console.log("You can access your Etherpad instance at http://" + settings.ip + ":" + settings.port + "/");
|
||||
console.log(`You can access your Etherpad instance at http://${settings.ip}:${settings.port}/`);
|
||||
if(!_.isEmpty(settings.users)){
|
||||
console.log("The plugin admin page is at http://" + settings.ip + ":" + settings.port + "/admin/plugins");
|
||||
console.log(`The plugin admin page is at http://${settings.ip}:${settings.port}/admin/plugins`);
|
||||
}
|
||||
else{
|
||||
console.warn("Admin username and password not set in settings.json. To access admin please uncomment and edit 'users' in settings.json");
|
||||
|
@ -42,9 +42,9 @@ exports.restartServer = function () {
|
|||
|
||||
if (settings.ssl) {
|
||||
|
||||
console.log( "SSL -- enabled");
|
||||
console.log( "SSL -- server key file: " + settings.ssl.key );
|
||||
console.log( "SSL -- Certificate Authority's certificate file: " + settings.ssl.cert );
|
||||
console.log("SSL -- enabled");
|
||||
console.log(`SSL -- server key file: ${settings.ssl.key}`);
|
||||
console.log(`SSL -- Certificate Authority's certificate file: ${settings.ssl.cert}`);
|
||||
|
||||
var options = {
|
||||
key: fs.readFileSync( settings.ssl.key ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue