From 642aa02937bb41df9762421e86ec2b921503ec91 Mon Sep 17 00:00:00 2001 From: Zack Boehm Date: Fri, 7 Jun 2024 16:08:17 -0400 Subject: [PATCH] remove extra logging --- src/api/apis/MobyGamesAPI.ts | 4 ++-- src/api/apis/OMDbAPI.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/apis/MobyGamesAPI.ts b/src/api/apis/MobyGamesAPI.ts index c8a355b..7b8a47f 100644 --- a/src/api/apis/MobyGamesAPI.ts +++ b/src/api/apis/MobyGamesAPI.ts @@ -22,7 +22,7 @@ export class MobyGamesAPI extends APIModel { console.log(`MDB | api "${this.apiName}" queried by Title`); if(!this.plugin.settings.MobyGamesKey) { - throw Error(`MDB | MobyGames ${this.apiName} API key missing.`); + throw Error(`MDB | ${this.apiName} API key missing.`); } const searchUrl = `${this.apiUrl}/games?title=${encodeURIComponent(title)}&api_key=${this.plugin.settings.MobyGamesKey}`; @@ -65,7 +65,7 @@ export class MobyGamesAPI extends APIModel { console.log(`MDB | api "${this.apiName}" queried by ID`); if(!this.plugin.settings.MobyGamesKey) { - throw Error(`MDB | MobyGames ${this.apiName} API key missing.`); + throw Error(`MDB | ${this.apiName} API key missing.`); } const searchUrl = `${this.apiUrl}/games?id=${encodeURIComponent(id)}&api_key=${this.plugin.settings.MobyGamesKey}`; diff --git a/src/api/apis/OMDbAPI.ts b/src/api/apis/OMDbAPI.ts index e3806c9..b20dcbd 100644 --- a/src/api/apis/OMDbAPI.ts +++ b/src/api/apis/OMDbAPI.ts @@ -29,7 +29,7 @@ export class OMDbAPI extends APIModel { console.log(`MDB | api "${this.apiName}" queried by Title`); if(!this.plugin.settings.OMDbKey) { - throw Error(`MDB | OMDb ${this.apiName} API key missing.`); + throw Error(`MDB | ${this.apiName} API key missing.`); } const searchUrl = `https://www.omdbapi.com/?s=${encodeURIComponent(title)}&apikey=${this.plugin.settings.OMDbKey}`; @@ -107,7 +107,7 @@ export class OMDbAPI extends APIModel { console.log(`MDB | api "${this.apiName}" queried by ID`); if(!this.plugin.settings.OMDbKey) { - throw Error(`MDB | OMDb ${this.apiName} API key missing.`); + throw Error(`MDB | ${this.apiName} API key missing.`); } const searchUrl = `https://www.omdbapi.com/?i=${encodeURIComponent(id)}&apikey=${this.plugin.settings.OMDbKey}`;