Skip to content

Commit

Permalink
feat(solo): accept $SOLO_SLOGFILE to write a slogfile
Browse files Browse the repository at this point in the history
cosmic-swingset can be run with e.g. `SLOGFILE=chain.slog agoric start
local-chain` to make it write out a slogfile during execution.

This brings this same functionality to the solo node, e.g.
`SOLO_SLOGFILE=client.slog agoric start local-solo`.

Co-authored-by: Michael FIG <[email protected]>
  • Loading branch information
warner and michaelfig committed Aug 9, 2021
1 parent ec407d9 commit 20f0c04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/solo/src/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,11 @@ async function buildSwingset(
}
await initializeSwingset(config, argv, hostStorage);
}
const slogFile = process.env.SOLO_SLOGFILE;
const controller = await makeSwingsetController(
hostStorage,
deviceEndowments,
{ slogFile },
);

async function saveState() {
Expand Down

0 comments on commit 20f0c04

Please sign in to comment.