Skip to content

Commit

Permalink
Revert "Added logger statements"
Browse files Browse the repository at this point in the history
This reverts commit 010c6ff.
  • Loading branch information
mvpoyatt committed Oct 3, 2024
1 parent 010c6ff commit 1993b1a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/api/channels/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,23 +136,19 @@ async function fetchRegistry() {
try {
let res;

logger.info(process.env.REGISTRY_URL);

if (process.env.GITHUB_TOKEN) {
logger.info('Using GitHub token for polymer-registry');
res = await fetch(process.env.REGISTRY_URL!, {
headers: {
Authorization: `token ${process.env.GITHUB_TOKEN}`,
},
cache: 'no-store'
});
} else {
logger.info('No token');
res = await fetch(process.env.REGISTRY_URL!);
}

if (!res.ok) {
logger.error('Error from polymer-registry call: ' + res.statusText);
logger.error('Error fetching polymer-registry: ' + res.statusText);
return {};
}
data = await res.json();
Expand Down

0 comments on commit 1993b1a

Please sign in to comment.