Skip to content

Commit

Permalink
Merge pull request #8943 from Agoric/mfig-silence-vat-replay-console
Browse files Browse the repository at this point in the history
fix(SwingSet): silence vat console output during replay
  • Loading branch information
mergify[bot] authored and mhofman committed Feb 19, 2024
2 parents 169baec + 43ddaa5 commit 6d9459d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/SwingSet/src/kernel/slogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ export function makeSlogger(slogCallbacks, writeObj) {
const vc = {};
for (const level of ['debug', 'log', 'info', 'warn', 'error']) {
vc[level] = (sourceTag, ...args) => {
if (replay) {
// Don't duplicate stale console output.
return;
}
sourcedConsole[level](sourceTag, ...args);
const when = { state, crankNum, vatID, deliveryNum };
const source = sourceTag === 'ls' ? 'liveslots' : sourceTag;
Expand Down
2 changes: 2 additions & 0 deletions packages/cosmic-swingset/src/launch-chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,8 @@ export async function launch({
controller.writeSlogObject(obj);
}

console.info('Launched SwingSet kernel');

return {
blockingSend,
shutdown,
Expand Down

0 comments on commit 6d9459d

Please sign in to comment.