Skip to content

Commit

Permalink
chore(swingset): slogger: include managerType in create-vat slog event
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed Apr 26, 2021
1 parent 3714ed9 commit e0f0633
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 8 additions & 1 deletion packages/SwingSet/src/kernel/loadVat.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,14 @@ export function makeVatLoader(stuff) {
);
}

kernelSlog.addVat(vatID, isDynamic, description, name, vatSourceBundle);
kernelSlog.addVat(
vatID,
isDynamic,
description,
name,
vatSourceBundle,
managerType,
);
const managerOptions = {
managerType,
bundle: vatSourceBundle,
Expand Down
10 changes: 9 additions & 1 deletion packages/SwingSet/src/kernel/slogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,14 @@ export function makeSlogger(slogCallbacks, writeObj) {
});
}

function addVat(vatID, dynamic, description, name, vatSourceBundle) {
function addVat(
vatID,
dynamic,
description,
name,
vatSourceBundle,
managerType,
) {
assert(!vatSlogs.has(vatID), X`already have slog for ${vatID}`);
const vatSlog = makeVatSlog(vatID);
vatSlogs.set(vatID, vatSlog);
Expand All @@ -200,6 +207,7 @@ export function makeSlogger(slogCallbacks, writeObj) {
description,
name,
vatSourceBundle,
managerType,
});
return vatSlog;
}
Expand Down

0 comments on commit e0f0633

Please sign in to comment.