diff --git a/meet-ce/backend/package.json b/meet-ce/backend/package.json index a12d4a0..0f49ea2 100644 --- a/meet-ce/backend/package.json +++ b/meet-ce/backend/package.json @@ -28,6 +28,7 @@ ], "scripts": { "build": "tsc -p tsconfig.prod.json", + "build:watch": "tsc -p tsconfig.prod.json --watch", "doc:api": "mkdir -p public/openapi && cd openapi && openapi-generate-html -i openvidu-meet-api.yaml --ui=stoplight --theme=light --title 'OpenVidu Meet REST API' --description 'OpenVidu Meet REST API' -o ../public/openapi/public.html", "doc:internal-api": "mkdir -p public/openapi && cd openapi && openapi-generate-html -i openvidu-meet-internal-api.yaml --ui=stoplight --theme=dark --title 'OpenVidu Meet Internal REST API' --description 'OpenVidu Meet Internal REST API' -o ../public/openapi/internal.html", "start": "node dist/src/server.js", diff --git a/meet-ce/backend/src/environment.ts b/meet-ce/backend/src/environment.ts index 2315911..ed9f851 100644 --- a/meet-ce/backend/src/environment.ts +++ b/meet-ce/backend/src/environment.ts @@ -21,6 +21,7 @@ export const { MEET_LOG_LEVEL = 'info', MEET_NAME_ID = 'openviduMeet', MEET_BASE_URL = '', + MEET_EDITION = 'CE', /** * Authentication configuration @@ -102,7 +103,7 @@ export const logEnvVars = () => { console.log(' '); console.log('---------------------------------------------------------'); - console.log('OpenVidu Meet Server Configuration'); + console.log(`OpenVidu Meet ${MEET_EDITION} Server Configuration`); console.log('---------------------------------------------------------'); console.log('SERVICE NAME ID: ', text(MEET_NAME_ID)); console.log('CORS ORIGIN:', text(SERVER_CORS_ORIGIN)); diff --git a/meet-ce/backend/src/server.ts b/meet-ce/backend/src/server.ts index c4a720d..179d5db 100644 --- a/meet-ce/backend/src/server.ts +++ b/meet-ce/backend/src/server.ts @@ -4,7 +4,7 @@ import cors from 'cors'; import express, { Express, Request, Response } from 'express'; import { initializeEagerServices, registerDependencies } from './config/index.js'; import { INTERNAL_CONFIG } from './config/internal-config.js'; -import { SERVER_CORS_ORIGIN, SERVER_PORT, logEnvVars } from './environment.js'; +import { MEET_EDITION, SERVER_CORS_ORIGIN, SERVER_PORT, logEnvVars } from './environment.js'; import { httpContextMiddleware, jsonSyntaxErrorHandler } from './middlewares/index.js'; import { authRouter, @@ -94,7 +94,7 @@ const startServer = (app: express.Application) => { console.log(' '); console.log('---------------------------------------------------------'); console.log(' '); - console.log('OpenVidu Meet is listening on port', chalk.cyanBright(SERVER_PORT)); + console.log(`OpenVidu Meet ${MEET_EDITION} is listening on port`, chalk.cyanBright(SERVER_PORT)); console.log( 'REST API Docs: ', chalk.cyanBright(`http://localhost:${SERVER_PORT}${INTERNAL_CONFIG.API_BASE_PATH_V1}/docs`) diff --git a/meet-ce/backend/src/services/logger.service.ts b/meet-ce/backend/src/services/logger.service.ts index 533a2ca..ce4b93c 100644 --- a/meet-ce/backend/src/services/logger.service.ts +++ b/meet-ce/backend/src/services/logger.service.ts @@ -1,6 +1,6 @@ import { injectable } from 'inversify'; import winston from 'winston'; -import { MEET_LOG_LEVEL } from '../environment.js'; +import { MEET_EDITION, MEET_LOG_LEVEL } from '../environment.js'; @injectable() export class LoggerService { @@ -20,7 +20,7 @@ export class LoggerService { ? JSON.stringify(info.metadata) : '' : ''; - return `${info.timestamp} [${info.level}] ${info.message} ${meta}`; + return `${info.timestamp} | ${MEET_EDITION} | [${info.level}] ${info.message} ${meta}`; // return `${info.timestamp} [${info.level}] ${info.message}`; }), @@ -41,7 +41,7 @@ export class LoggerService { ? JSON.stringify(info.metadata) : '' : ''; - return `${info.timestamp} [${info.level}] ${info.message} ${meta}`; + return `${info.timestamp} | ${MEET_EDITION} | [${info.level}] ${info.message} ${meta}`; // return `${info.timestamp} [${info.level}] ${info.message}`; })