match_collector: log api_key
This commit is contained in:
@@ -17,7 +17,8 @@ async function main() {
|
|||||||
const alreadySeenGameList = await alreadySeenGames(client, latestPatch);
|
const alreadySeenGameList = await alreadySeenGames(client, latestPatch);
|
||||||
console.log("We already have " + alreadySeenGameList.length + " matches for this patch !")
|
console.log("We already have " + alreadySeenGameList.length + " matches for this patch !")
|
||||||
|
|
||||||
if(process.env.RIOT_API_KEY != null && process.env.RIOT_API_KEY != undefined && process.env.RIOT_API_KEY != "") {
|
console.log("Using RIOT_API_KEY: " + api_key)
|
||||||
|
if(api_key != null && api_key != undefined && api_key != "") {
|
||||||
const challengerLeague = await fetchChallengerLeague();
|
const challengerLeague = await fetchChallengerLeague();
|
||||||
console.log("ChallengerLeague: got " + challengerLeague.entries.length + " entries");
|
console.log("ChallengerLeague: got " + challengerLeague.entries.length + " entries");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user