Skip to content

Commit

Permalink
Remove pino-pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Oct 6, 2024
1 parent 18c24ae commit fc54d82
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 87 deletions.
86 changes: 6 additions & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"dotenv": "^16.4.5",
"fastify": "^4.28.1",
"ioredis": "^5.4.1",
"jsonwebtoken": "^9.0.2",
"pino-pretty": "^11.2.2"
"jsonwebtoken": "^9.0.2"
},
"devDependencies": {
"@types/jsonwebtoken": "^9.0.6",
Expand Down
7 changes: 2 additions & 5 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ import fastifyCors from "@fastify/cors";

const app = await Fastify({
logger: {
level: "info",
transport: {
target: "pino-pretty"
}
level: "info"
},
trustProxy: true
});
Expand All @@ -37,7 +34,7 @@ await app.register(fastifyCors, {
});

app.addHook("onRequest", async (request, reply) => {
if (request.method === "OPTIONS" || request.url == "/up") {
if (request.method === "OPTIONS" || request.url === "/up") {
return;
}
try {
Expand Down

0 comments on commit fc54d82

Please sign in to comment.