Skip to content

Commit

Permalink
Add yet more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Jan 22, 2024
1 parent 8d616bc commit c269c13
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/matrix/docker/synapse/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,25 @@ export async function synapseStart(

console.log(`Started synapse with id ${synapseId} on port ${synCfg.port}`);

const synapseLogsPath = path.join('playwright', 'synapselogs', synapseId);
await fse.ensureDir(synapseLogsPath);

await dockerLogs({
containerId: synapseId,
stdoutFile: path.join(synapseLogsPath, 'stdout.log'),
stderrFile: path.join(synapseLogsPath, 'stderr.log'),
});

console.log('stdout logs');
console.log(
await fse.readFile(path.join(synapseLogsPath, 'stdout.log'), 'utf8'),
);

console.log('stderr logs');
console.log(
await fse.readFile(path.join(synapseLogsPath, 'stderr.log'), 'utf8'),
);

// Await Synapse healthcheck
await dockerExec({
containerId: synapseId,
Expand Down

0 comments on commit c269c13

Please sign in to comment.