Skip to content

Commit cbde8b3

Browse files
committed
clean console
1 parent b5bc344 commit cbde8b3

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

SimpleQueries.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export async function getColFromName(
111111
!name.genericName && !name.infragenericEpithet &&
112112
!name.specificEpithet && !name.infraspecificEpithet
113113
) {
114-
console.log("Empty name");
114+
console.log("skipping getColFromName for empty name");
115115
return new Set();
116116
}
117117
const query = `
@@ -320,7 +320,7 @@ export async function getPlaziFromName(
320320
!name.genericName && !name.infragenericEpithet &&
321321
!name.specificEpithet && !name.infraspecificEpithet
322322
) {
323-
console.log("Empty name");
323+
console.log("skipping getPlaziFromName for empty name");
324324
return new Set();
325325
}
326326
const query = `

SynonymGroup.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ export class SynonymGroup implements AsyncIterable<Name> {
166166
console.log(`Skipping known (${key0})`);
167167
return;
168168
}
169+
console.debug(`synogroup: lnSynonyms ${key0}`);
169170

170171
if (this.controller.signal?.aborted) return Promise.reject();
171172

@@ -198,6 +199,7 @@ export class SynonymGroup implements AsyncIterable<Name> {
198199
key0: string,
199200
justification: Justification,
200201
) {
202+
console.debug(`synogroup: handling ${key0}`);
201203
const treatmentPromises: Promise<[Name, Treatment, TreatmentDetails]>[] =
202204
[];
203205
const colPromises: Promise<void[]>[] = [];
@@ -225,8 +227,6 @@ export class SynonymGroup implements AsyncIterable<Name> {
225227
newPlazi.set(key, r);
226228
}
227229

228-
console.log(newNames, newCol, newPlazi);
229-
230230
for (const key of newNames) {
231231
if (key != key0 && this.expanded.has(key)) {
232232
console.log(`Skipping known (${key})`);
@@ -239,8 +239,6 @@ export class SynonymGroup implements AsyncIterable<Name> {
239239

240240
const treatments: Treatment[] = [];
241241

242-
console.log(key, cols, plazi);
243-
244242
let unauthorizedCol: ColEntry | undefined;
245243
const authorizedNames: AuthorizedName[] = [];
246244

@@ -431,6 +429,7 @@ export class SynonymGroup implements AsyncIterable<Name> {
431429
/** @internal */
432430
async tcSynonyms(tcUri: string, justification: Justification) {
433431
if (this.noSynonyms && !justification.searchTerm) return;
432+
console.debug(`synogroup: tcSynonyms ${tcUri}`);
434433
this.expanded.add(tcUri);
435434
const plazi = await SQueries.getNameFromTC(
436435
tcUri,
@@ -453,6 +452,7 @@ export class SynonymGroup implements AsyncIterable<Name> {
453452
/** @internal */
454453
async tnSynonyms(tnUri: string, justification: Justification) {
455454
if (this.noSynonyms && !justification.searchTerm) return;
455+
console.debug(`synogroup: tnSynonyms ${tnUri}`);
456456
this.expanded.add(tnUri);
457457
const plazi = await SQueries.getNameFromTN(
458458
tnUri,
@@ -523,6 +523,7 @@ export class SynonymGroup implements AsyncIterable<Name> {
523523
// we have already found this group of synonyms
524524
return [];
525525
}
526+
console.debug(`synogroup: colSynonyms ${colUri}`);
526527

527528
const promises: Promise<void>[] = [];
528529

@@ -576,8 +577,6 @@ export class SynonymGroup implements AsyncIterable<Name> {
576577
}
577578
}
578579

579-
console.log(keys);
580-
581580
const plazis = await Promise.all(plaziPromises);
582581
promises.push(
583582
this.handleColAndPlaziResult(

0 commit comments

Comments
 (0)