Skip to content

Commit

Permalink
removing log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmelnicki committed Feb 12, 2024
1 parent da3adf8 commit 23d3366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 2 additions & 6 deletions plugins/pirsch/src/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ export class Queue {
clientId,
clientSecret,
});
console.log("client created.");
}

get length() {
return this.items.length;
}

enqueue(request: Request, context: FreshContext) {
push(request: Request, context: FreshContext) {
this.items.push(createHit(request, context));

if (!this.uploading) {
Expand All @@ -61,10 +60,7 @@ export class Queue {
const item = this.items.shift();

try {
if (this.client) {
await this.client.hit(item!);
console.log("hit sent.");
}
await this.client?.hit(item!);
} catch (err) {
console.error(err);
await delay(UPLOAD_DELAY);
Expand Down
5 changes: 1 addition & 4 deletions plugins/pirsch/src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ export function createReporter(options: PirschPluginOptions): Reporter {
return;
}

console.log(
`${request.method.toUpperCase()} ${request.url} - ${context.remoteAddr.hostname}`,
);
queue.enqueue(request, context);
queue.push(request, context);
};
}

0 comments on commit 23d3366

Please sign in to comment.