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 type ContainerStatus = 'running' | 'stopped' | 'not_exists';
@@ -147,7 +148,7 @@ export class DockerContainer {
const result = await this.smartshell.exec(command);
return result.exitCode === 0;
} catch (error) {
helpers.printMessage(`Failed to run container: ${error.message}`, 'red');
logger.log('error', `Failed to run container: ${error.message}`);
return false;
}
}