Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print node version and platform #743

Merged
merged 1 commit into from Nov 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/server.js
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