Skip to content

Commit

Permalink
Updated logging to use console.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
TyroneAEM committed Aug 27, 2024
1 parent 62e8f76 commit 3ecb702
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export async function graphqlAllCampaignsFilter(first,cursor,filter) {
//Performance logging
const endTime = performance.now();
const executionTime = endTime - startTime;
console.log(`getAllCampaigns Execution Time: ${executionTime} ms`);
console.debug(`getAllCampaigns Execution Time: ${executionTime} ms`);

// Handle response codes
if (response.status === 200) {
const responseBody = await response.json();
Expand Down Expand Up @@ -192,7 +193,7 @@ export async function executeQuery(queryString) {
//Performance logging
const endTime = performance.now();
const executionTime = endTime - startTime;
console.log(`executeQuery for ${queryString} Execution Time: ${executionTime} ms`);
console.debug(`executeQuery for ${queryString} Execution Time: ${executionTime} ms`);

return response.json();
}).then(data => {
Expand Down

0 comments on commit 3ecb702

Please sign in to comment.