From 6e8d3e5bce5c58ad84b8722eae5fa0c29c44e499 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 12 Aug 2023 10:40:34 +0000 Subject: [PATCH] trace get --- packages/frontend/src/scripts/entity-manager.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index 9577541994..4ff961276b 100644 --- a/packages/frontend/src/scripts/entity-manager.ts +++ b/packages/frontend/src/scripts/entity-manager.ts @@ -197,9 +197,15 @@ export class NoteManager { return result; })); - if (this.isDebuggerEnabled) console.log('NoteManager: get note (new)', id, this.notesComputed.get(id)); + if (this.isDebuggerEnabled) { + console.log('NoteManager: get note (new)', id, this.notesComputed.get(id)); + console.trace(); + } } else { - if (this.isDebuggerEnabled) console.log('NoteManager: get note (cached)', id, this.notesComputed.get(id), this.notesSource.value.get(id)); + if (this.isDebuggerEnabled) { + console.log('NoteManager: get note (cached)', id, this.notesComputed.get(id), this.notesSource.value.get(id)); + console.trace(); + } } return this.notesComputed.get(id)!; }