mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-06 14:59:09 +00:00
refactor: simplify logic
This commit is contained in:
@@ -49,8 +49,7 @@ import { serverTryDesiredPort, getNetworkInterfaces } from './utils/network.js';
|
|||||||
console.log('\n');
|
console.log('\n');
|
||||||
consoleHighlight(`Starting Ontime version ${ONTIME_VERSION}`);
|
consoleHighlight(`Starting Ontime version ${ONTIME_VERSION}`);
|
||||||
|
|
||||||
const canLog = isProduction;
|
if (!isProduction) {
|
||||||
if (!canLog) {
|
|
||||||
console.log(`Ontime running in ${environment} environment`);
|
console.log(`Ontime running in ${environment} environment`);
|
||||||
console.log(`Ontime source directory at ${srcDir.root} `);
|
console.log(`Ontime source directory at ${srcDir.root} `);
|
||||||
console.log(`Ontime public directory at ${publicDir.root} `);
|
console.log(`Ontime public directory at ${publicDir.root} `);
|
||||||
|
|||||||
Reference in New Issue
Block a user