Skip to content

Commit

Permalink
Merge pull request #743 from thelounge/xpaw/print-node-version
Browse files Browse the repository at this point in the history
Print node version and platform
  • Loading branch information
astorije committed Nov 20, 2016
2 parents ee801f8 + b5db0ab commit d8ef28c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var io = require("socket.io");
var dns = require("dns");
var Helper = require("./helper");
var ldap = require("ldapjs");
var colors = require("colors/safe");

var manager = null;
var authFunction = localAuth;
Expand Down Expand Up @@ -78,10 +79,13 @@ module.exports = function() {

const protocol = config.https.enable ? "https" : "http";
const host = config.host || "*";
log.info("The Lounge", Helper.getVersion(), "is now running");
log.info(`Configuration file: ${Helper.CONFIG_PATH}`);
log.info(`Available on: ${protocol}://${host}:${config.port}/ in ${config.public ? "public" : "private"} mode`);
log.info("Press ctrl-c to stop\n");

log.info(`The Lounge ${colors.green(Helper.getVersion())} is now running \
using node ${colors.green(process.versions.node)} on ${colors.green(process.platform)} (${process.arch})`);
log.info(`Configuration file: ${colors.green(Helper.CONFIG_PATH)}`);
log.info(`Available on ${colors.green(protocol + "://" + host + ":" + config.port + "/")} \
in ${config.public ? "public" : "private"} mode`);
log.info(`Press Ctrl-C to stop\n`);

if (!config.public) {
manager.loadUsers();
Expand Down

0 comments on commit d8ef28c

Please sign in to comment.