@camunda8/cli 2.7.0-alpha.2 → 2.7.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -733,6 +733,7 @@ function printSummary(rawOutput, version) {
|
|
|
733
733
|
async function startC8Run(config, debug = false) {
|
|
734
734
|
const logger = getLogger();
|
|
735
735
|
const binaryPath = getC8RunBinaryPath(config);
|
|
736
|
+
const logDir = join(dirname(binaryPath), 'log');
|
|
736
737
|
|
|
737
738
|
if (!existsSync(binaryPath)) {
|
|
738
739
|
throw new Error(`c8run binary not found at ${binaryPath}`);
|
|
@@ -761,7 +762,9 @@ async function startC8Run(config, debug = false) {
|
|
|
761
762
|
});
|
|
762
763
|
|
|
763
764
|
if (typeof proc.pid !== 'number') {
|
|
764
|
-
logger.error('Failed to start cluster process: no PID received from c8run.
|
|
765
|
+
logger.error('Failed to start cluster process: no PID received from c8run.');
|
|
766
|
+
logger.error(`Check logs in: ${logDir}`);
|
|
767
|
+
logger.info(`Print logs with: cat "${logDir}"/*.log`);
|
|
765
768
|
process.exit(1);
|
|
766
769
|
}
|
|
767
770
|
|
|
@@ -818,8 +821,10 @@ async function startC8Run(config, debug = false) {
|
|
|
818
821
|
printSummary(startupOutput, config.version);
|
|
819
822
|
} else {
|
|
820
823
|
logger.error(
|
|
821
|
-
'Cluster failed to start within timeout.
|
|
824
|
+
'Cluster failed to start within timeout.',
|
|
822
825
|
);
|
|
826
|
+
logger.error(`Check logs in: ${logDir}`);
|
|
827
|
+
logger.info(`Print logs with: cat "${logDir}"/*.log`);
|
|
823
828
|
process.exit(1);
|
|
824
829
|
}
|
|
825
830
|
}
|