Skip to content

Commit

Permalink
Cleaned up logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
RillingDev committed Dec 23, 2023
1 parent bf7adb9 commit e3f9ab4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/tooltip/tooltip/bindTooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const showTooltip = (
// Start request, but do not wait for it to finish.
ygoprodeckService
.increaseCardViewCount(card)
.then(() => logger.trace("Updated view count."))
.catch((err) =>
logger.warn("Could not update view count.", err)
);
Expand Down
20 changes: 8 additions & 12 deletions src/ygoprodeck/api/YgoprodeckCardDatabase.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { Card, CardDatabase, CardSet, CardType } from "@/core/lib";
import { CardTypeCategory, FindCardBy, getLogger } from "@/core/lib";
import type { YgoprodeckApiService } from "@/ygoprodeck/api/YgoprodeckApiService";
import type { RawCard } from "@/ygoprodeck/api/mapping/mapCard";
import { mapCard } from "@/ygoprodeck/api/mapping/mapCard";
import { mapArchetype } from "@/ygoprodeck/api/mapping/mapArchetype";
import { mapCardSet } from "@/ygoprodeck/api/mapping/mapCardSet";
import { mapCardValues } from "@/ygoprodeck/api/mapping/mapCardValues";
import type {Card, CardDatabase, CardSet, CardType} from "@/core/lib";
import {CardTypeCategory, FindCardBy, getLogger} from "@/core/lib";
import type {YgoprodeckApiService} from "@/ygoprodeck/api/YgoprodeckApiService";
import type {RawCard} from "@/ygoprodeck/api/mapping/mapCard";
import {mapCard} from "@/ygoprodeck/api/mapping/mapCard";
import {mapArchetype} from "@/ygoprodeck/api/mapping/mapArchetype";
import {mapCardSet} from "@/ygoprodeck/api/mapping/mapCardSet";
import {mapCardValues} from "@/ygoprodeck/api/mapping/mapCardValues";

export class YgoprodeckCardDatabase implements CardDatabase {
static readonly #logger = getLogger(YgoprodeckCardDatabase);
Expand Down Expand Up @@ -278,10 +278,6 @@ export class YgoprodeckCardDatabase implements CardDatabase {
if (card.betaName != null) {
this.#cardsByName.set(card.betaName, card);
}

YgoprodeckCardDatabase.#logger.trace(
`Registered card '${card.passcode}'.`
);
}

#getCardMap(findCardBy: FindCardBy): Map<string, Card> {
Expand Down

0 comments on commit e3f9ab4

Please sign in to comment.