Skip to content

Commit fe1330f

Browse files
committed
chore: Remove unhelpful debug clutter from Query
Query objects are cheap to construct and destroy, but temporary Query objects are created by: - the implementation of the Global Query code - the implementation of the 'explain' instruction Previously, I had added debug logging of the construction of Query objects, but that has turned out to just clutter up the console when debug output is enabled - and it makes it look like redundant searches are being done, which was not the case.
1 parent 17bc898 commit fe1330f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Query/Query.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ export class Query implements IQuery {
5757
this.source = source;
5858
this.tasksFile = tasksFile;
5959

60-
this.debug(`Creating query: ${this.formatQueryForLogging()}`);
61-
6260
const anyContinuationLinesRemoved = continueLines(source);
6361

6462
const anyPlaceholdersExpanded: Statement[] = [];

0 commit comments

Comments
 (0)