Skip to content

Commit

Permalink
Atualização de Libs e correção no logger
Browse files Browse the repository at this point in the history
Atualizado as libs: pino, pino-pretty e whatsapp-web.js
  • Loading branch information
rtenorioh committed Mar 21, 2023
1 parent d29363e commit ea127c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"mustache": "^4.2.0",
"mysql2": "^2.2.5",
"pg": "^8.4.1",
"pino": "^7.8.0",
"pino-pretty": "^9.1.1",
"pino": "^8.11.0",
"pino-pretty": "^10.0.0",
"qrcode-terminal": "^0.12.0",
"reflect-metadata": "^0.1.13",
"sequelize": "^5.22.3",
Expand All @@ -41,7 +41,7 @@
"socket.io": "^3.0.5",
"swagger-ui-express": "^4.3.0",
"uuid": "^8.3.2",
"whatsapp-web.js": "^1.19.4",
"whatsapp-web.js": "^1.19.5",
"yup": "^0.32.8"
},
"devDependencies": {
Expand Down
12 changes: 8 additions & 4 deletions backend/src/utils/logger.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import pino from "pino";

const logger = pino({
prettyPrint: {
ignore: "pid,hostname"
},
level: "trace"
transport: {
target: "pino-pretty",
options: {
levelFirst: true,
translateTime: true,
colorize: true
}
}
});

export { logger };

0 comments on commit ea127c2

Please sign in to comment.