fix(services): Improve logging and enhance MongoDB Compass integration
Some checks failed
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 0s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped

This commit is contained in:
2025-08-15 09:37:54 +00:00
parent 05b170cbac
commit 7b9ebfdacb
7 changed files with 160 additions and 163 deletions

View File

@@ -1,5 +1,6 @@
import * as plugins from './mod.plugins.js';
import * as helpers from './helpers.js';
import { logger } from '../gitzone.logging.js';
export interface IServiceConfig {
PROJECT_NAME: string;
@@ -111,10 +112,10 @@ export class ServiceConfiguration {
await this.saveConfig();
helpers.printMessage('✅ Created .nogit/env.json with project defaults', 'green');
helpers.printMessage(`📍 MongoDB port: ${mongoPort}`, 'blue');
helpers.printMessage(`📍 S3 API port: ${s3Port}`, 'blue');
helpers.printMessage(`📍 S3 Console port: ${s3ConsolePort}`, 'blue');
logger.log('ok', '✅ Created .nogit/env.json with project defaults');
logger.log('info', `📍 MongoDB port: ${mongoPort}`);
logger.log('info', `📍 S3 API port: ${s3Port}`);
logger.log('info', `📍 S3 Console port: ${s3ConsolePort}`);
}
/**
@@ -209,9 +210,9 @@ export class ServiceConfiguration {
if (updated) {
await this.saveConfig();
helpers.printMessage(`✅ Added missing fields: ${fieldsAdded.join(', ')}`, 'green');
logger.log('ok', `✅ Added missing fields: ${fieldsAdded.join(', ')}`);
} else {
helpers.printMessage('✅ Configuration complete', 'green');
logger.log('ok', '✅ Configuration complete');
}
}