fix(benchmark): Always print out container logs after run (#10977)

This commit is contained in:
Tomi Turtiainen 2024-09-26 16:28:32 +03:00 committed by GitHub
parent a13a4f7442
commit c7888ef229
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,9 +105,8 @@ async function main() {
console.error(error.message);
console.error('');
await printContainerStatus(dockerComposeClient);
console.error('');
await dumpLogs(dockerComposeClient);
} finally {
await dumpLogs(dockerComposeClient);
await dockerComposeClient.$('down');
}
}
@ -118,7 +117,7 @@ async function printContainerStatus(dockerComposeClient) {
}
async function dumpLogs(dockerComposeClient) {
console.error('Container logs:');
console.info('Container logs:');
await dockerComposeClient.$('logs');
}