Skip to content

Commit

Permalink
Ensure that action stream logging is working as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
REllEK-IO committed Apr 2, 2024
1 parent 2618a5c commit d9cf33b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@phuire/stratimux",
"license": "GPL-3.0",
"version": "0.1.51",
"version": "0.1.52",
"description": "Unified Turing Machine",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
4 changes: 3 additions & 1 deletion src/model/axium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ export function createAxium(name: string, initialConcepts: Concept[], logging?:
// Would be notifying methods
const _axiumState = _concepts[0].state as AxiumState;
const modeIndex = _axiumState.modeIndex;
console.log('CHECK ACTION STREAM', action.type, action.semaphore, action.strategy?.topic, action.payload);
if (getAxiumState(_concepts).logActionStream) {
console.log('CHECK ACTION STREAM', action.type, action.payload, action.semaphore, action.strategy?.topic);
}
const modes = _concepts[0].mode as Mode[];
const mode = modes[modeIndex] as Mode;
mode([action, _concepts, _axiumState.action$, _axiumState.concepts$]);
Expand Down

0 comments on commit d9cf33b

Please sign in to comment.