mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(benchmark): Always print out container logs after run (#10977)
This commit is contained in:
@@ -105,9 +105,8 @@ async function main() {
|
|||||||
console.error(error.message);
|
console.error(error.message);
|
||||||
console.error('');
|
console.error('');
|
||||||
await printContainerStatus(dockerComposeClient);
|
await printContainerStatus(dockerComposeClient);
|
||||||
console.error('');
|
|
||||||
await dumpLogs(dockerComposeClient);
|
|
||||||
} finally {
|
} finally {
|
||||||
|
await dumpLogs(dockerComposeClient);
|
||||||
await dockerComposeClient.$('down');
|
await dockerComposeClient.$('down');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -118,7 +117,7 @@ async function printContainerStatus(dockerComposeClient) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function dumpLogs(dockerComposeClient) {
|
async function dumpLogs(dockerComposeClient) {
|
||||||
console.error('Container logs:');
|
console.info('Container logs:');
|
||||||
await dockerComposeClient.$('logs');
|
await dockerComposeClient.$('logs');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user