Skip to content

Commit

Permalink
chore(editor): add logging for buffer in AiActionExecutor
Browse files Browse the repository at this point in the history
Added logging statement to track buffer content in AiActionExecutor for debugging purposes.
  • Loading branch information
phodal committed Sep 23, 2024
1 parent 13a132c commit 3f347e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/core/lib/editor/action/AiActionExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export class AiActionExecutor {
allText += chunk;
buffer = buffer.concat(chunk);

console.info('buffer', buffer);

if (buffer.includes('\n')) {
const pos = actionPosition(action, this.editor.state.selection);
this.editor.chain().focus()?.insertContentAt(pos, buffer).run();
Expand Down

0 comments on commit 3f347e3

Please sign in to comment.