Skip to content

Commit

Permalink
Dont log options requests it looks ugly
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamint08 committed May 31, 2024
1 parent 50fe95e commit 566a850
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ async function handleRequest(req: Request): Promise<Response> {
return ServerFailure("Internal Server Error");
}
}
if(log){
reqMessage += ` ${chalk.bold.green("200")} ${chalk.bold.gray(`${Date.now() - start}ms`)}`;
console.log(reqMessage);
}
return new Response("", { status: 200, headers: customHeaders });
}

Expand Down

0 comments on commit 566a850

Please sign in to comment.