Skip to content

Commit

Permalink
feat(swingset): expose writeSlogObject to host application
Browse files Browse the repository at this point in the history
This lets the host write arbitrary records into the slogfile.
  • Loading branch information
warner committed May 25, 2021
1 parent 352922a commit 851fa61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/SwingSet/src/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ export async function makeSwingsetController(
kernel.log(str);
},

writeSlogObject,

dump() {
return JSON.parse(JSON.stringify(kernel.dump()));
},
Expand Down

0 comments on commit 851fa61

Please sign in to comment.