trace get

This commit is contained in:
tamaina 2023-08-12 10:40:34 +00:00
parent 4669054af8
commit 6e8d3e5bce
1 changed files with 8 additions and 2 deletions

View File

@ -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)!;
}