From 20f0c045eb7e948bbbac096b2f04d239767027d9 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 5 Aug 2021 21:08:16 -0700 Subject: [PATCH] feat(solo): accept $SOLO_SLOGFILE to write a slogfile 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 --- packages/solo/src/start.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/solo/src/start.js b/packages/solo/src/start.js index 4ddc9e5a441..b06c45ce12b 100644 --- a/packages/solo/src/start.js +++ b/packages/solo/src/start.js @@ -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() {