Skip to content

Commit

Permalink
feat(swingset-runner): accept '--slog FILE' to write slogfile
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed Oct 5, 2020
1 parent f97ef41 commit d710582
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/swingset-runner/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ FLAGS may be:
--logstats - log kernel stats after each block
--logall - log kernel stats, block times, memory use, and disk space
--logtag STR - tag for stats log file (default "runner")
--slog FILE - write swingset log to FILE
--forcegc - run garbage collector after each block
--batchsize N - set BATCHSIZE to N cranks (default 200)
--verbose - output verbose debugging messages as it runs
Expand Down Expand Up @@ -156,6 +157,7 @@ export async function main() {
let logDisk = false;
let logStats = false;
let logTag = 'runner';
let slogFile = null;
let forceGC = false;
let verbose = false;
let doDumps = false;
Expand Down Expand Up @@ -203,6 +205,9 @@ export async function main() {
case '--logtag':
logTag = argv.shift();
break;
case '--slog':
slogFile = argv.shift();
break;
case '--config':
configPath = argv.shift();
break;
Expand Down Expand Up @@ -352,6 +357,9 @@ export async function main() {
if (verbose) {
runtimeOptions.verbose = true;
}
if (slogFile) {
runtimeOptions.slogFile = slogFile;
}
let bootstrapResult;
if (forceReset) {
bootstrapResult = await initializeSwingset(
Expand Down

0 comments on commit d710582

Please sign in to comment.