Skip to content

Commit

Permalink
Merge pull request #4746 from Agoric/dc-logging-shh
Browse files Browse the repository at this point in the history
chore(vats): refine bootstrap logging for installations etc. in agoricNames
  • Loading branch information
mergify[bot] authored Mar 5, 2022
2 parents d1cbed3 + dda9ecf commit 28c48e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vats/src/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ harden(extractPowers);
*
*/
export const makeAgoricNamesAccess = (
log = console.debug,
log = () => {}, // console.debug
reserved = agoricNamesReserved,
) => {
const { nameHub: agoricNames, nameAdmin: agoricNamesAdmin } =
Expand All @@ -227,7 +227,8 @@ export const makeAgoricNamesAccess = (
});
const spaces = mapEntries(reserved, (key, detail) => {
const { nameAdmin } = hubs[key];
const { produce, consume } = makePromiseSpace(log);
const subSpaceLog = (...args) => log(key, ...args);
const { produce, consume } = makePromiseSpace(subSpaceLog);
keys(detail).forEach(k => {
nameAdmin.reserve(k);
consume[k].then(v => nameAdmin.update(k, v));
Expand Down

0 comments on commit 28c48e4

Please sign in to comment.