Some commented-out but useful debug logging
This commit is contained in:
parent
b37ed5f342
commit
230b54868f
|
@ -74,6 +74,7 @@ Dataspace.withCurrentFacet = function (facet, thunk) {
|
||||||
let savedFacet = Dataspace._currentFacet;
|
let savedFacet = Dataspace._currentFacet;
|
||||||
Dataspace._currentFacet = facet;
|
Dataspace._currentFacet = facet;
|
||||||
try {
|
try {
|
||||||
|
// console.group('Facet', facet && facet.toString());
|
||||||
let result = thunk();
|
let result = thunk();
|
||||||
Dataspace._currentFacet = savedFacet;
|
Dataspace._currentFacet = savedFacet;
|
||||||
return result;
|
return result;
|
||||||
|
@ -83,6 +84,8 @@ Dataspace.withCurrentFacet = function (facet, thunk) {
|
||||||
a._terminate(false);
|
a._terminate(false);
|
||||||
Dataspace._currentFacet = savedFacet;
|
Dataspace._currentFacet = savedFacet;
|
||||||
console.error('Actor ' + a.toString() + ' exited with exception:', e);
|
console.error('Actor ' + a.toString() + ' exited with exception:', e);
|
||||||
|
} finally {
|
||||||
|
// console.groupEnd();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -165,6 +168,7 @@ Dataspace.prototype.performPendingActions = function () {
|
||||||
this.pendingActions = Immutable.List();
|
this.pendingActions = Immutable.List();
|
||||||
groups.forEach((group) => {
|
groups.forEach((group) => {
|
||||||
group.actions.forEach((action) => {
|
group.actions.forEach((action) => {
|
||||||
|
// console.log('[DATASPACE]', group.actor && group.actor.toString(), action);
|
||||||
action.perform(this, group.actor);
|
action.perform(this, group.actor);
|
||||||
this.runPendingScripts();
|
this.runPendingScripts();
|
||||||
});
|
});
|
||||||
|
@ -416,6 +420,7 @@ Activation.prototype.perform = function (ds, ac) {
|
||||||
if (!ds.activatedModules.includes(this.mod)) {
|
if (!ds.activatedModules.includes(this.mod)) {
|
||||||
ds.activatedModules = ds.activatedModules.add(this.mod);
|
ds.activatedModules = ds.activatedModules.add(this.mod);
|
||||||
this.mod.exports[Dataspace.BootSteps].steps.forEach((a) => {
|
this.mod.exports[Dataspace.BootSteps].steps.forEach((a) => {
|
||||||
|
// console.log('[ACTIVATION]', ac && ac.toString(), a);
|
||||||
a.perform(ds, ac);
|
a.perform(ds, ac);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue