Skip to content

Commit

Permalink
Elevate logging of updateLatestMove and rules to info
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-berman committed Sep 10, 2024
1 parent 7b51ff3 commit f6da9fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ export const dme = setup({
isu: assign(({ context }, params: { name: string }) => {
let ruleName = params.name;
let newIS = rules[ruleName](context)();
console.debug(`[ISU ${ruleName}]`, newIS);
console.info(`[ISU ${ruleName}]`, newIS);
return { is: newIS };
}),
updateLatestMove: assign(({ event }) => {
console.debug("[DM updateLatestMove]", event);
console.info("[DM updateLatestMove]", event);
return {
latest_move: (event as SaysMoveEvent).value.move,
latest_speaker: (event as SaysMoveEvent).value.speaker,
Expand Down
1 change: 0 additions & 1 deletion src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ export const rules: Rules = {
*/
/** rule 2.9 */
find_plan: ({ is }) => {
console.log("testing find_plan");
if (is.private.agenda.length > 0) {
const action = is.private.agenda[0];
if (action.type === "respond") {
Expand Down

0 comments on commit f6da9fd

Please sign in to comment.